Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 2, 2024 via pnpm

numeral 2.0.6

Format and manipulate numbers.
Package summary
Share
0
issues
1
license
1
MIT
Package created
3 Oct 2012
Version published
27 Mar 2017
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
numeral@2.0.6
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of numeral 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does numeral do?

Numeral.js is a popular JavaScript library that provides functionality for formatting and manipulating numbers. It's a handy tool to have, especially when dealing with large numerical data or when you need to format numbers in a specific way for your application or website.

How do you use numeral?

To use Numeral.js, you first need to install it via npm, using the command npm install numeral. After it has been installed, you can require it in your JavaScript file using const numeral = require('numeral').

You can manipulate and format numbers using various functions provided by the library.

Here are a few examples:

  1. Formatting numbers:
let number = numeral(1000);
let formatted = number.format('0,0');
// Output: '1,000'
  1. Unformatting strings:
let value = numeral().unformat('($10,000.00)');
// Output: -10000
  1. Manipulating numbers:
let number = numeral(1000);
let added = number.add(100);
// Output: 1100

In each usage case, you start by creating a numeral instance of your number, then apply the appropriate function depending on your needs.

Where are the numeral docs?

The official documentation for Numeral.js can be found on their website. The documentation provides full details on how to use the library, including how to install it, how to perform various number manipulations and formatting, among other things. It also contains information on how to contribute to the project, and the history of the changelog for the package.