Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cuongtk8/numcode

Repository files navigation

numcode

6️⃣7️⃣ Generating codes is easy and simple.

All Contributors Build Status npm david Hits-of-Code GitHub

Installation

yarn add numcode
# or
npm install -s numcode

Usage

For ES6 or ESNext

import { numcode } from 'numcode';

For CommonJS

const { numcode } = require('numcode');
console.log(numcode());
Output should be '1998'

API

numcode(length)

Returns string unique id with length option (length from 4 to 6).

Example

numcode(6);
Output should be '122856'

Contributors

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © 103cuong

About

6️⃣7️⃣ Generating codes is easy and simple.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /