
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
create-token
Advanced tools
create-token is an open source library created to generate random tokens with an specific size.
The API provided by this library is too simple. The only available function is createToken( charsAmount?:number ): string; it receives an argument that represent the size of the returned token[1]
import createToken from 'create-token'
const token: string = createToken( 10 )
console.log( token ) // '0a8po1f4r8'
This code is only an example [2]
nodemon src/test.ts. This script is for set up a development environment. It uses nodemon and ts-node as developement dependencies to listen the project changes and autoupdate the output.
tsc. This script run the typescript compiler, spliting javascript code and typescript declarations (*.d.ts files) inside ./dist directory.
In the file ./src/test.ts you can find the testing instructions; this code can provide an output with the following format
Testing:
- npnnnoaj0gkgiou8m7yb
- 5k10dri7huin0jt5a1qv
- lynrzacqw2b02wfgj0za
- kk9kvnme11854qt9irfy
- cwe606hnjfintmwl8o6q
- qcg00x97g45o2fjbzeyk
- c2994d16kafrav10yv2a
[ Duration ]: 0mls
You can edit this file to test specific cases[3]
- If it is not provided the size of the returned token will be between 1 and 10
- The code output will be different, because... it's random XD
- This is the script executed by
npm run dev
FAQs
A library to create random tokens
We found that create-token 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.