Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

approximate-number

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

approximate-number - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

lib/approximate-number.js

@@ -75,4 +75,4 @@ /*jshint node:true, browser:true*/

} else if(typeof window !== "undefined") {
window.approximate = approximate;
window.approximateNumber = approximate;
}
}());
{
"name": "approximate-number",
"version": "1.0.1",
"version": "1.0.2",
"main": "lib/approximate-number.js",

@@ -28,10 +28,10 @@ "description": "Converts numbers into a more human-friendly format. For example, 123456 becomes '123k'.",

"stack overflow",
" stack exchange",
"stack exchange",
"-h",
" format",
" formater",
" approximate",
" approximation",
" short",
" simple"
"format",
"formatter",
"approximate",
"approximation",
"short",
"simple"
],

@@ -38,0 +38,0 @@ "devDependencies": {

# [![Build Status](https://secure.travis-ci.org/nfriedly/approximate-number.png?branch=master)](http://travis-ci.org/nfriedly/approximate-number)
Converts numbers into a more human-friendly format, similar to `ls`'s `--human-readable` flag (`ls -lh`) or Stack
Overflow's reputation numbers. For example, 123456 becomes '123k'. See [tests] for more examples.
Overflow's reputation numbers. For example, 123456 becomes '123k'.
Works in Node, browsers, and on the command line.,
Works in Node, browsers, and on the command line.

@@ -23,3 +23,3 @@

<script>
alert(approximate(1234567890)); // 1.2b
alert(approximateNumber(1234567890)); // 1.2b
</script>

@@ -35,7 +35,4 @@ ```

## Contributing
See [tests] for more examples.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com).
## License

@@ -47,2 +44,2 @@

[tests]: https://github.com/nfriedly/approximate-number
[tests]: https://github.com/nfriedly/approximate-number/blob/master/test/approximate-number_test.js
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc