stamp

4.0.2 • Public • Published

stamp

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

Build Status js-standard-style npm version Coverage Status

const stamp = require('stamp')
 
// stamp.create()
// results in 946725040140
 
// fires when a stamp closes (is handled)
stamp.on(() => console.log('closing'))
 
// fires stamp listeners
stamp.close()
 
const parsed = stamp.parse(stamp)
// returns a valid date time stamp
 
// 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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.0.2
    196
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 4.0.2
    196
  • 4.0.1
    0
  • 0.1.0
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i stamp

Weekly Downloads

196

Version

4.0.2

License

ISC

Last publish

Collaborators

  • vigour-io