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

handsome-char

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handsome-char

generate character as you like, only English letters and Numbers

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

generate string as you like, only English letters and Numbers supported

Usage

npm install handsome-char --save
import handsomeChar from 'handsome-char';
var str1 = handsomeChar('1-5|(2-9)^2|(3*7)^5|a-d|(c-e)^6|(d*g)^5|A-D|(C-E)^6|(D*G)^5');
var str2 = handsomeChar('20');

Rule

NOTE: only 1 param of type string required
using '|' to split diffrent conditions, result in turn will be outputted according to the sequence of rule

'1-5': 1~5 in turn

'(2-9)^2': repeat 2 times of 2~9 in turn

'(3*7)^5': pick 5 random numbers from range of 3~7

and so is the "lowerCase" or "upperCase"

enjoy🙉

Keywords

FAQs

Package last updated on 07 May 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