Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
toxic-utils
Advanced tools
utils collection
npm install toxic-utils --save
if you are using flow
, you should import our flow defination, by adding this to your .flowconfig
.
[ignore]
[include]
[libs]
./node_modules/toxic-utils/lib/index.flow.js
[options]
[lints]
the handler to generate an deep traversal handler
Parameters
fn
Function the function you wanna run when you reach in the deep propertyReturns Function the handler
deeply clone an object
Parameters
Returns clone-target the new Object
merge multiple objects
Parameters
args
...Object [description]Returns merge-object [description]
camelize any string, e.g hello world -> helloWorld
Parameters
Returns string camelize string
hypenate any string e.g hello world -> hello-world
Parameters
str
string only accept stringReturns string
bind the function with some context. we have some fallback strategy here
Parameters
fn
function the function which we need to bind the context oncontext
any the context objectReturns Function
generate an uuid
Returns string
generate an random number which length is 4
Returns string
generate an random number with specific length
Parameters
length
numberReturns string
get an deep property
Parameters
FAQs
utils
The npm package toxic-utils receives a total of 0 weekly downloads. As such, toxic-utils popularity was classified as not popular.
We found that toxic-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.