quote and unquote strings. escapes internal quotes and slashes. Automatically decides whether to use single or double quotes.
npm install quote-unquotequote and unquote strings. escapes internal quotes and slashes.
Automatically decides whether to use single or double quotes.
foo's bar => "foo's bar""foo's bar" => "\"foo's bar\"""\"foo's bar\"" => "\"\\\"foo's bar\\\"\""
etc
the reverse of the above.
"foo's bar" => foo's bar"\"foo's bar\"" => "foo's bar""\"\\\"foo's bar\\\"\"" => "\"foo's bar\""
MIT