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

strdm

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strdm

Generate random string

  • 0.2.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by25%
Maintainers
1
Weekly downloads
 
Created
Source

STRDM

Generate random strings

How to installtion?

  # yarn
  yarn add strdm -S --registry=https://registry.npmjs.org/

  # npm
  npm i strdm -S --registry=https://registry.npmjs.org/

How to use?

CommonJS

const strdm = require('strdm');

console.log(strdm());          // dZUYsl
console.log(strdm(32));        // ilq4i3rXe70rz3j4hrpjMKI3jqCDpr0q
console.log(strdm(32, true));  // 8AMl$2+8jC25u}>DXjjo9p]n.,vWhzVU
console.log(strdm(32, 'ABCDEFG123askdsl'));       // sdd2d1EFka2sBGdAs3Dsd2sAAsCCk1CG
console.log(strdm(32, { numbers: false }));       // iwhfOOHlEFNIbuTGHseCyCYnppCXoraZ
console.log(strdm(32, { strings: false }));       // 56124247096321521961829045800161
console.log(strdm(32, { strings: 'ABCDEFG' }));   // 8EE9B8GFF79CF28AADA9A2G439242211
console.log(strdm(32, { symbols: true }));        // HccU8vM)1,TVHi$=J,::V^wiMxY(tG-j
console.log(strdm(32, { symbols: true, numbers: false, strings: false }));    // ,|+;%]@;,_+#(%.~;[@!{}-<~?@=;;??
console.log(strdm(32, { symbols: ':;', numbers: false, strings: false }));    // :;;;::;;:::::;::::;:;::;:;::;;;:

ESM

import strdm from "strdm";

console.log(strdm());          // dZUYsl
console.log(strdm(32));        // ilq4i3rXe70rz3j4hrpjMKI3jqCDpr0q
console.log(strdm(32, true));  // 8AMl$2+8jC25u}>DXjjo9p]n.,vWhzVU
console.log(strdm(32, 'ABCDEFG123askdsl'));       // sdd2d1EFka2sBGdAs3Dsd2sAAsCCk1CG
console.log(strdm(32, { numbers: false }));       // iwhfOOHlEFNIbuTGHseCyCYnppCXoraZ
console.log(strdm(32, { strings: false }));       // 56124247096321521961829045800161
console.log(strdm(32, { strings: 'ABCDEFG' }));   // 8EE9B8GFF79CF28AADA9A2G439242211
console.log(strdm(32, { symbols: true }));        // HccU8vM)1,TVHi$=J,::V^wiMxY(tG-j
console.log(strdm(32, { symbols: true, numbers: false, strings: false }));    // ,|+;%]@;,_+#(%.~;[@!{}-<~?@=;;??
console.log(strdm(32, { symbols: ':;', numbers: false, strings: false }));    // :;;;::;;:::::;::::;:;::;:;::;;;:

Keywords

FAQs

Package last updated on 10 Mar 2022

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