generate-string
v1.0.1
Published
Generate a js string safely, that defaults to a single quoted string
Downloads
1,725
Readme
generate-string
Generate a js string safely, that defaults to a single quoted string
npm install generate-string
Usage
const generateString = require('generate-string')
console.log(generateString('42')) // '42'
console.log(generateString('"42')) // "\"42"
License
MIT