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

  • 2.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
102
increased by64.52%
Maintainers
1
Weekly downloads
 
Created
Source

brisky-stamp

Generate unique meta information for change in a system

Build Status js-standard-style npm version Coverage Status

const briskyStamp = require('brisky-stamp')

// briskyStamp.create(type, source, override)
// results in click-1
const stamp = briskyStamp.create('click')

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

// fires stamp listeners, usefull for debugging (all stamps need to be closed)
briskyStamp.close(stamp)

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

// remove all listeners
briskyStamp.clear()

// to debug use
const debug = require('brisky-stamp/debug')
debug(briskyStamp)
// this will throw errors when stamps are created while others are still open
// idea is that stamps are synchronous, so you never have 2 stamps in progress at the same time in one thread
briskyStamp.create(type, source, override, true) // ignores stamp creation for debugging

Keywords

FAQs

Package last updated on 21 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