🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

consistent-ids

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

consistent-ids

A randomly consistent (a-la-Stripe) hash generator

0.6.1
latest
Source
npm
Version published
Weekly downloads
14
-26.32%
Maintainers
1
Weekly downloads
 
Created
Source

hash-generator

A no dependency randomly consistent (a-la-Stripe) hash generator

npm npm Travis branch Codecov branch
Commitizen friendly styled with prettier Code of Conduct Roadmap

Why?

// TODO

Installation

npm install consistent-ids --save 

Or use yarn (I ❤️ yarn)

yarn add consistent-ids

Usage


#In Your .env file
HASH_KEY = SomeTrulyRandomKeyWhichCannotBeGuessedByAnyone

import IdGenerator from 'consistent-ids';

const generator = new IdGenerator(); // We'll take care of HASH_KEY for you
generator.generate('ord');

// => ord_1BVVs21TuBY1vZhGhN03ug5
      
generator.generate('cus');

// => cus_1BVVs21TuBY1vZhGhN0sKqd

FAQ

What for ? To be written

Contributors

Maintainer


Clément SAUVAGE

Contributors

License

MIT © Clément SAUVAGE

Keywords

stripe

FAQs

Package last updated on 22 May 2021

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