Skip to content

theguriev/guid

Repository files navigation

GUID - Global Unique IDentifier

GitHub license npm version Netlify Status

Global Unique IDentifier https://www.ietf.org/rfc/rfc4122.txt

Demo

Installation

npm i --save lguid

Example

import lguid from 'lguid'

console.log(lguid()) // '00000000-0000-0000-0000-000000000000'

Commands

  • npm run clean - Remove lib/ directory
  • npm test - Run tests with linting and coverage results.
  • npm test:only - Run tests without linting or coverage.
  • npm test:watch - You can even re-run tests on file changes!
  • npm test:prod - Run tests with minified code.
  • npm run test:examples - Test written examples on pure JS for better understanding module usage.
  • npm run lint - Run ESlint with airbnb-config
  • npm run cover - Get coverage report for your code.
  • npm run build - Babel will transpile ES6 => ES5 and minify the code.
  • npm run prepublish - Hook for npm. Do all the checks before publishing your module.

License

MIT © Eugen Guriev eg@beagl.in