approximate-number
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4211
42