1.0.0 • Published 8 years ago

singlequote v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

singlequote

Transform all double quote strings in a piece of JavaScript code to single quoted strings

npm install singlequote

usage

var singlequote = require("singlequote");

function x(){
	return "hello\" I am a string's for sure";
}

var singleQuoteStringsCode = singlequote(x.toString())

//singleQuoteStringsCode will contain the string:
function x(){
	return 'hello" I am a string\'s for sure';
}

singlequote will throw an exception if the JavaScript code can not be parsed.

singlequote will throw an error if there is a bug in singlequote, that would produce invalid JavaScript code.

running singlequote on an entire directory of .js files

Use the command line tool jsq

License

MIT

1.0.0

8 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago