1.0.0 • Published 8 years ago

identify-js v1.0.0

Weekly downloads
5
License
-
Repository
github
Last release
8 years ago

Identify

Build Status

A small module to generate uniquely identified objects

Installation

  npm install identify-js --save

Usage

  // es6
  import identify from 'identify-js';
  const obj = {username: 'papswell'};

  const identified = identify(obj); // identified has a field __id

  // es5
  var identify = require('identify-js').default; // don't forget .default !! :)
  var obj = {username: 'papswell'};

  var identified = identify(obj); // identified has a field __id

Tests

$ npm test
1.0.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago