rjutils-collection
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "rjutils-collection", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Easy and Lightweight Utilities", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -13,3 +13,3 @@ <h1 align="center">Welcome to rjutils-collection 👋</h1> | ||
Easy and Lightweight Utilitiees | ||
Easy and Lightweight Utilities | ||
</center> | ||
@@ -44,2 +44,9 @@ | ||
Generating a Random Boolean | ||
```js | ||
const utils = require('rjutils-collection') | ||
const boolean = utils.randomBol() | ||
``` | ||
Generating a Random String | ||
@@ -46,0 +53,0 @@ ```js |
@@ -39,2 +39,11 @@ const path = require('node:path') | ||
/** | ||
* Generate a Random Boolean | ||
* | ||
*/ | ||
randomBol() { | ||
const boolean = Math.floor(Math.random() * (2 - 1 + 1)) + 1 | ||
return (boolean === 1) | ||
}, | ||
/** | ||
* Generate a Random String | ||
@@ -41,0 +50,0 @@ * |
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
7839
113
78