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
2
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.2.0 to 0.3.0

5

index.js

@@ -1,2 +0,2 @@

var strip = require('css-strip-units')
var unit = require('css-get-unit')

@@ -10,3 +10,4 @@ module.exports = duration

var number = parseFloat(time)
switch (strip(time)) {
switch (unit(time)) {
case null:
case 'ms': return number

@@ -13,0 +14,0 @@ case 's': return number * 1000

4

package.json
{
"name": "css-duration",
"version": "0.2.0",
"version": "0.3.0",
"description": "Converts CSS-style durations to milliseconds.",

@@ -23,3 +23,3 @@ "main": "index.js",

"dependencies": {
"css-strip-units": "^1.0.0"
"css-get-unit": "^1.0.0"
},

@@ -26,0 +26,0 @@ "devDependencies": {

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