npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

pear-ref

1.0.2

@davidmarkclements

npmSnykSocket
Downloads:21
$ npm install pear-ref
DailyWeeklyMonthlyYearly

pear-ref

Pear core ref counter

Usage

const ref = require('pear-ref')

ref.on('ref', (refs) => console.log('ref', 'count', refs))
ref.on('unref', (refs) => console.log('unref', 'count', refs))

ref.ref()
handleCreatingCb(function callback () { ref.unref() })

ref.track(handleCreatingPromise())

License

Apache-2.0