Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junosuarez/powerlevel
npm module: a convenient way to see if things are powerful enough
https://github.com/junosuarez/powerlevel
Last synced: 8 days ago
JSON representation
npm module: a convenient way to see if things are powerful enough
- Host: GitHub
- URL: https://github.com/junosuarez/powerlevel
- Owner: junosuarez
- Created: 2012-12-14T04:11:45.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2012-12-14T04:20:54.000Z (almost 12 years ago)
- Last Synced: 2024-10-16T03:31:53.324Z (30 days ago)
- Language: JavaScript
- Size: 102 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# powerlevel
a convenient way to see if things are powerful enough## installation
# npm install powerlevel
## usage
var powerlevel = require('powerlevel')
var powerA = 800
powerlevel(powerA, function (err, level) {
console.log(level)
// => "weak"
})powerB = 10000
powerlevel(powerB, function (err, level) {
console.log(level)
// => "it's over 9000?! there's no way that can be right!"
})## api reference
**powerlevel: function (powerUnderTest: number|array|object|string, callback: function (err: Error, level: string))**
Asynchronously test the power level of any number, array, object, or string. Once the powerlevel has been evaluated, it will call back with the resulting `level`.
## but why is the version so high?
It's more powerful that way.
## license
MIT
(c) 2012 jden - Jason Denizac - http://jden.mit-license.org/2012