Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
crispy-string
Advanced tools
A simple tool that creates random base 10, 16, 32, 62 and 64 strings. Very useful to give random ids to objects or to give a unique filename to any uploaded file when you just want it to be unique and sanitized.
npm install crispy-string
Creating a string with just decimals and a length of 8 characters is as simple as:
var crispy = require('crispy-string');
crispy.base10String(8);
Creates a random decimal string
Character pool: Digits
crispy.base10String(8); // => '98145208'
Creates a random hexadecimal string
Character pool: Digits, Uppercase A to F
crispy.base16String(8); // => 'A81FB209'
Creates a random base 32 string:
Character pool: Digits, Uppercase A to Z
crispy.base32String(8); // => 'a81Fb2cz'
Creates a random base 62 string
Character pool: Digits, Uppercase A to Z and Lowercase a to z
crispy.base62String(8); // => 'ab82dE0X'
Creates a random base 64 string
Character pool: Digits, Uppercase A to Z, Lowercase a to z, + and /
crispy.base64String(8); // => 'x8/dFB0+'
FAQs
Tool to create random string with a specific baseN charset.
The npm package crispy-string receives a total of 146 weekly downloads. As such, crispy-string popularity was classified as not popular.
We found that crispy-string demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.