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

brisky-stamp

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brisky-stamp

Generate unique meta information for change in a system

  • 3.0.8
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

brisky-stamp

Generate unique meta information for change in a system, monotonic timestamps

Build Status js-standard-style npm version Coverage Status

const stamp = require('brisky-stamp')

// stamp.create(type, source, override)
// results in [ 946725040140, 0, 21158948 ]
// only lowercase letters from the alphabet are supported (base(36))

console.log(stamp.create('click'))

// fires when a stamp closes (is handled)
stamp.on(() => console.log('closing'))

// fires stamp listeners
stamp.close()

const parsed = stamp.parse(stamp)
// returns a parsed stamp { type: 'click', val: 1 }

// remove all listeners
stamp.clear()

// offset internal clock
stamp.offset = 100 // add 100 ms to timestamps

// check if listeners are in progress
stamp.inProgress // true or false

note Types only support base 36 characters - beware! (lowercase letters from the alphabet)

Keywords

FAQs

Package last updated on 22 Dec 2016

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