Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
english-secs
Advanced tools
convert english time expressions to seconds or milliseconds. zero runtime dependencies.
npm install english-secs --save
const etime = require('english-secs');
console.log(etime('1 hour')); // 3600
console.log(etime('2 days 12 hours')); // 216000
console.log(etime('1 month', {milliseconds: true})); // 2678400000
etime(input, options)
input
: string or number. if number, returns input unchanged.options
: object (optional)
milliseconds
: boolean. if true, returns milliseconds instead of seconds.customUnits
: object. custom unit definitions.customSingularUnits
: array. custom singular unit names.yarn install
: install dependenciesyarn test
: run testsyarn build
: compile coffeescript to javascriptmit
FAQs
![Run Tests](../../actions/workflows/test.yml/badge.svg)
We found that english-secs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.