Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

immutable-instance-id

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

immutable-instance-id

Generate random-unique-id once per process instance

  • 0.3.17
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
59
increased by490%
Maintainers
1
Weekly downloads
 
Created
Source

immutable-instance-id

const instanceId = require('immutable-instance-id')

/* {
 *     id: 'af7f52d9d8f7dcfb8fda5cb15814ef61',
 *     timestamp: '2017-09-01 12:36:11.032569'
 * }
 */

Generate a random id once per process using the Random Unique Id module.

Instance Id is an object with a property id which is a 128 bit (32 char) lower case hex string and a property timestamp with is a string indicating the time that the id was generated in MySQL compatible microsecond format.

The Instance Id is stored in global.__immutable_instance_id__ and will not change even if the module file is executed multiple times.

Immutable Instance Id integrates with the Immutable App ecosystem to provide unique ids that are used for logging, debugging and testing.

FAQs

Package last updated on 15 Jan 2018

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc