1.0.7 • Published 8 years ago

uni-order-no v1.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

uni-order-no

Generates a string which consists of date and a string generated by generate-password. You can use in order no or somewhere need unique string.

Install

npm install uni-order-no --save

Usage

const orderNoGenerator = require('uni-order-no').generate;

// Default will generates string which consists date time string and 6 lower case letters.
console.log(orderNoGenerator());
// Result: 20160929115608gvrjqy


// You can assign letter's length.
// For example: I assign length = 10, so I can get a string consists date time string and 10 lower case letters.
console.log(orderNoGenerator({
  length: 10,
}));
// Result: 20160929115608ofbdrltopi
1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago