generate-string
v1.0.1
Published
Generate a js string safely, that defaults to a single quoted string
Downloads
234
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