🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

node-powertools

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-powertools - npm Package Compare versions

Comparing version

to
2.3.1

2

package.json
{
"name": "node-powertools",
"version": "2.3.0",
"version": "2.3.1",
"description": "Powerful assistive functions for Node and Browser environments.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -68,2 +68,8 @@ <p align="center">

### powertools.cahnce(chance, options)
Generate a random number between 0 and 100. If the random number is less than or equal to `chance`, return `true`. Otherwise, return `false`. You can use `options` to supply a sign or randomize the sign as well.
```js
powertools.chance(0.5); // Possible output: true
```
### powertools.arrayify(input)

@@ -70,0 +76,0 @@ Transform the `input` into an array if it is not already.