stripe id generator:生成带有前缀的随机ID(la Stripe) 源码
带区号生成器 为Node.Js生成带有前缀(la Stripe)的随机id 正在安装 npm i stripe-id-generator # or yarn add stripe-id-generator 使用 简单的情况: const IdGenerator = require ( 'stripe-id-generator' ) ; const generator = new IdGenerator ( ) ; const id = generator . new ( 'cus' ) ; console . log ( id ) ; // cus_lO1DEQWBbQAACfHO 预定义的一组允许的前缀(以避免错误): const IdGenerator = require ( 'stripe-id-generator' ) ; const generator = new IdGen
文件列表
stripe-id-generator-master.zip
(预估有个17文件)
stripe-id-generator-master
.gitignore
96B
code-of-conduct.md
3KB
package.json
3KB
tslint.json
157B
src
stripe-id-generator.ts
1KB
renovate.json5
135B
LICENSE
1KB
tsconfig.json
464B
暂无评论