Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
A tiny JavaScript library that converts milliseconds to and from CSS time.
npm install css-time
jam install css-time
git clone git@github.com:philbooth/css-time.js.git
Both
CommonJS
(e.g. if you're using Browserify)
and AMD
(e.g. if you're using Require.js)
loading styles are supported.
If neither system is detected,
the library defaults to
exporting it's interface globally
as cssTime
.
Two functions are exported, from
and to
.
Returns the number of milliseconds represented by a CSS time string.
cssTime.from('500ms'); // returns 500
cssTime.from('-1.5s'); // returns -1500
Returns a CSS time string representing the number of milliseconds passed in the argument.
cssTime.to(500); // returns '500ms'
cssTime.to(-0.5); // returns '-0.5ms'
The build environment relies on
Node.js,
NPM,
Jake,
JSHint,
Mocha,
Chai and
UglifyJS.
Assuming that you already have Node.js and NPM set up,
you just need to run npm install
to
install all of the dependencies as listed in package.json
.
The unit tests are in test/css-time.js
.
You can run them with the command npm test
or jake test
.
FAQs
A tiny library that converts milliseconds to and from CSS time.
The npm package css-time receives a total of 219 weekly downloads. As such, css-time popularity was classified as not popular.
We found that css-time 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.