Nanananananananana.. Pat Man!

    Cashew

    0.0.3 • Public • Published

    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
     

    Keywords

    none

    Install

    npm i Cashew

    DownloadsWeekly Downloads

    1

    Version

    0.0.3

    License

    none

    Last publish

    Collaborators

    • avatar