New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

css-duration

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-duration - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

.gitattributes

4

package.json
{
"name": "css-duration",
"version": "0.1.1",
"description": "Converts CSS durations to milliseconds.",
"version": "0.1.2",
"description": "Converts CSS-style durations to milliseconds.",
"main": "index.js",

@@ -6,0 +6,0 @@ "author": "Brandon Semilla (https://github.com/grandonbroseph)",

# css-duration
Converts CSS durations to milliseconds.
Converts CSS-style durations to milliseconds.
## Installation
`npm install --save css-duration`
## Usage
```javascript
var duration = require("css-duration")
duration('1000ms')
// > 1000
duration('1.5s')
// > 1500
duration('30m')
// > 1800000
duration('8h')
// > 28800000
duration('2d')
// > 172800000
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc