rjutils-collection
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "rjutils-collection", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Easy and Lightweight Utilities", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -40,3 +40,2 @@ const path = require('node:path') | ||
* Generate a Random Boolean | ||
* | ||
*/ | ||
@@ -66,3 +65,23 @@ randomBol() { | ||
return string | ||
}, | ||
/** | ||
* Generate a Spinner | ||
*/ | ||
spinner: class spinner { | ||
constructor() { | ||
this.state = 0 | ||
this.states = [ | ||
'/', '-', | ||
'\\', '|' | ||
] | ||
} | ||
get() { | ||
if (this.state >= 4) this.state = 0 | ||
this.state++ | ||
return this.states[this.state-1] | ||
} | ||
} | ||
} |
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
8211
129