Socket
Socket
Sign inDemoInstall

uuid-time

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    uuid-time

Get time from uuids


Version published
Weekly downloads
3.4K
decreased by-10.3%
Maintainers
1
Install size
6.99 kB
Created
Weekly downloads
 

Readme

Source

uuid-time

Get time from uuids

Motivation

So there was this pull-request on the mainline node-uuid that hasn't been merged since 2012. So I decided to strip it out into a stand-alone module because I needed it.

Usage

//
// Remark: This also works with uuids generated from
// `require('uuid');`, which is a popular fork of `node-uuid`.
//
var uuidTime = require('uuid-time'),
    uuid     = require('node-uuid');

var v1 = uuid.v1();
var buf = uuid.parse(v1);

console.log('%s (string) created at %s', v1, uuidTime.v1(v1));
console.log('%s (buffer) created at %s', v1, uuidTime.v1(buf));

Attribution

Much of this code was written by Krassimir Fotev in the pull request mentioned in Motivation. It was adapted and re-released under the MIT License.

License: MIT
Author: Charlie Robbins

Keywords

FAQs

Last updated on 09 Dec 2014

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc