Socket
Socket
Sign inDemoInstall

immutable-instance-id

Package Overview
Dependencies
7
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    immutable-instance-id

Generate random-unique-id once per process instance


Version published
Weekly downloads
25
increased by257.14%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 15 Dec 2023

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