New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cashew

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cashew

ID generator

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

Cashew - ID Generator for node.js

An ID generator which allows you generate IDs, and identify them based on their type.

Inspiration:

  • Facebook's graph API
  • MongoDB's ObjectIds

Example:


var cashew = require('cashew');

var userIDGenerator = cashew.generator('users');

var userId = userIDGenerator.uid();

console.log(cashew.key(userId)); //users

FAQs

Package last updated on 08 Mar 2012

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