
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
timepoint-selection
Advanced tools
#timepoint-selection
Enhance input elements with easy key entry and validation for time durations. Library is in pure javascript, no framework is needed. Event handlers are added directly to the input and the package includes a destroy method to remove all added events.
npm install timepoint-selection
var selection = require('timepoint-selection');
var timepoint = selection(document.getElementById("input"), {
'durationFormat': 'hh:mm:ss',
'max': 3600 * 24, // point of rollover in seconds.
'value': 0, // initial value of input in seconds.
'useAbbr': true, // configure the separator to not be ':'
'abbr': { // pass in custom separator (with trailing space if desired)
'dd': 'days ',
'hh': 'h ',
'mm': 'm ',
'ss': 's'
}
});
//returns the current value of the input in seconds.
timepoint.getValue();
//sets the current value of the input in seconds.
timepoint.setValue(seconds);
//remove all the event listeners from the input.
timepoint.destroy();
Accepted duration formats:
d = days, h = hours, m = minutes, s = seconds
npm run start
runs the webpack dev server.
FAQs
Key controlled time input duration selection
The npm package timepoint-selection receives a total of 2 weekly downloads. As such, timepoint-selection popularity was classified as not popular.
We found that timepoint-selection 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.