
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
Convert from one time scale to another. Nanosecond is the most atomic unit, week is the largest unit.
timescale: noun | time·scale | time-ˌskāl\ - a period of time whose size can be compared to other periods of time
Inspired by mout/convert.
(Table of contents generated by [verb])
Install with npm
$ npm i timescale --save
var timescale = require('timescale');
Use long names:
timescale(7, 'days', 'weeks');
//=> 1
Or abbreviations:
timescale(7, 'd', 'w');
//=> 1
Converts to seconds by default:
timescale(1, 'minute');
//=> 60
Convert nanoseconds to minutes:
timescale(1000000000, 'ns', 'm');
//=> 0.016666666666666666
You can convert to or from any of the following units of measure:
ns (or nanosecond, or nanoseconds)μs (or microsecond, or microseconds)ms (or millisecond, or milliseconds)s (or second, or seconds)m (or minute, or minutes)h (or hour, or hours)d (or day, or days)w (or week, or weeks)Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on October 11, 2015.
FAQs
Convert from one time scale to another. Nanosecond is the most atomic unit, week is the largest unit.
The npm package timescale receives a total of 22 weekly downloads. As such, timescale popularity was classified as not popular.
We found that timescale 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.