Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
NodeJS Event Based System Time Keeper
Systime syncs with system time and emits time events. It accounts for fluctuations in time accuracy by continuously re-syncing with local system time.
Use this package for any software that needs to accurately track time (assuming system time is accurate).
For more information on computer clocks and time see NTP.org.
See ./package.json
Source available on GitHub or install module via NPM:
$ npm install systime
After requiring systime create a new instance. Bind event listeners to systime then call the start method.
var Systime = require('systime')
var systime = new Systime()
// bind listeners to zero or more of the following events
// (each callback has a date object argument)
systime.on('second', date => console.log(date))
systime.on('minute', () => console.log('new minute'))
systime.on('hour', () => console.log('new hour'))
systime.on('day', () => console.log('new day'))
systime.on('week', () => console.log('new week'))
systime.on('month', () => console.log('new month'))
systime.on('year', () => console.log('new year'))
systime.start() // start systime
// runs until process has exited or systime.stop() method called
The above starts systime and console logs as event listeners are triggered.
See ./example/events.js
for working example.
That's it!
MIT
FAQs
NodeJS Event Based System Time Keeper
The npm package systime receives a total of 13 weekly downloads. As such, systime popularity was classified as not popular.
We found that systime demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.