![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@nichoth/nanoid-dictionary
Advanced tools
Readme
Predefined character sets to use with nanoid. Used by nanoid-generate.
Install nanoid and dictionary
npm i nanoid nanoid-dictionary
Note: If you plan on using import
style ES6 syntax (or node complains that it can't find the named export of the thing you're importing from nanoid-dictionary
please rather install the beta version, like this
npm i nanoid-dictionary@beta
Require a customAlphabet
from nanoid
and pass a string from the dictionary:
import { customAlphabet } from 'nanoid';
import { lowercase } from 'nanoid-dictionary';
const lowercaseRandomString = customAlphabet(lowercase, 10);
numbers
Numbers from 0 to 9
import { numbers } from 'nanoid-dictionary';
hexadecimalLowercase
Lowercase English hexadecimal lowercase characters: 0123456789abcdef
import { hexadecimalLowercase } from 'nanoid-dictionary';
hexadecimalUppercase
Lowercase English hexadecimal uppercase characters: 0123456789ABCDEF
import { hexadecimalUppercase } from 'nanoid-dictionary';
lowercase
Lowercase English letters: abcdefghijklmnopqrstuvwxyz
import { lowercase } from 'nanoid-dictionary';
uppercase
Uppercase English letters: ABCDEFGHIJKLMNOPQRSTUVWXYZ
import { uppercase } from 'nanoid-dictionary';
alphanumeric
Combination of all the lowercase, uppercase characters and numbers from 0 to 9
Does not include any symbols or special characters
import { alphanumeric } from 'nanoid-dictionary';
nolookalikes
Numbers and english alphabet without lookalikes: 1
, l
, I
, 0
, O
, o
, u
, v
, 5
, S
, s
, 2
, Z
.
Complete set: 346789ABCDEFGHJKLMNPQRTUVWXYabcdefghijkmnpqrtwxyz
import { nolookalikes } from 'nanoid-dictionary';
nolookalikesSafe
Same as nolookalikes
but with removed vowels and following letters: 3
, 4
, x
, X
, V
.
This list should protect you from accidentally getting obscene words in generated strings.
Complete set: 6789BCDFGHJKLMNPQRTWbcdfghjkmnpqrtwz
import { nolookalikesSafe } from 'nanoid-dictionary';
FAQs
Predefined character sets to use with nanoid
The npm package @nichoth/nanoid-dictionary receives a total of 89 weekly downloads. As such, @nichoth/nanoid-dictionary popularity was classified as not popular.
We found that @nichoth/nanoid-dictionary demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.