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

convert-to-ecmascript-compatible-varname

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-to-ecmascript-compatible-varname - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

index.js

@@ -42,3 +42,3 @@ /**

throw (function (){
var e = new Error(util.format('The string "%s" cannot be converted into an ECMAScript 5.1-compatible variable name. "%s" collides with a JavaScript reserved word.', original));
var e = new Error(util.format('The string "%s" cannot be converted into an ECMAScript 5.1-compatible variable name. "%s" collides with a JavaScript reserved word, or is otherwise invalid.', original));
e.code = 'RESERVED';

@@ -45,0 +45,0 @@ return e;

{
"name": "convert-to-ecmascript-compatible-varname",
"version": "0.1.2",
"version": "0.1.3",
"description": "Given a string of dash-delimited words, return a similar version of the string, but which is camel-cased and otherwise stripped of special characters, whitespace, etc. so that it is usable as an ECMAScript variable.",

@@ -5,0 +5,0 @@ "main": "index.js",

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