Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hyphenate-style-name

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyphenate-style-name - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

.nyc_output/900e064d9219b09c1c1b62dc2f53b452.json

11

index.js

@@ -5,10 +5,13 @@ 'use strict';

var msPattern = /^ms-/;
var cache = {};
function hyphenateStyleName(string) {
return string
.replace(uppercasePattern, '-$&')
.toLowerCase()
.replace(msPattern, '-ms-');
return string in cache
? cache[string]
: cache[string] = string
.replace(uppercasePattern, '-$&')
.toLowerCase()
.replace(msPattern, '-ms-');
}
module.exports = hyphenateStyleName;
{
"name": "hyphenate-style-name",
"version": "1.0.1",
"version": "1.0.2",
"description": "Hyphenates a camelcased CSS property name",
"main": "index.js",
"scripts": {
"coverage": "istanbul cover tape -- test/**/*.test.js",
"coverage": "nyc tape -- test/**/*.test.js",
"lint": "eslint .",

@@ -29,7 +29,7 @@ "test": "tape test/**/*.test.js",

"devDependencies": {
"eslint": "^1.0.0",
"eslint-config-vaffel": "^1.0.2",
"istanbul": "^0.3.17",
"tape": "^4.0.1"
"eslint": "^3.8.1",
"eslint-config-vaffel": "^5.0.0",
"nyc": "^8.3.2",
"tape": "^4.6.2"
}
}
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