Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

randomatic

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

randomatic

Generate randomized strings of a specified length from patterns of numeric, alpha-numeric, alphabetical, special or custom characters.

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.8M
decreased by-26.53%
Maintainers
1
Weekly downloads
 
Created

What is randomatic?

The randomatic npm package is a utility for generating random strings of various patterns. It can be used to create random and unique strings of a specified length, pattern, or characters, which is useful for generating passwords, identifiers, and other random tokens.

What are randomatic's main functionalities?

Pattern-based random string generation

Generates a random string of length 10 following the pattern 'Aa0!', where 'A' stands for uppercase letters, 'a' for lowercase letters, '0' for numbers, and '!' for special characters.

randomatic('Aa0!', 10)

Custom character pool

Generates a random string of length 10 using only the characters provided in the 'chars' option, in this case, 'abc123'.

randomatic('?', 10, {chars: 'abc123'})

Masked characters

Generates a random string of length 10 excluding the character 'a' from the possible characters.

randomatic('?', 10, {exclude: 'a'})

Other packages similar to randomatic

Keywords

FAQs

Package last updated on 03 May 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc