js-string-escape-cli

1.0.0 • Public • Published

js-string-escape-cli

Escape strings for use as JavaScript string literals from command line.

Usage

The package creates a symlink the in the .bin folder. You can run it from command line with:

js-string-escape [options] <input> <output>

Options

CommonJS

-c or --commonjs wraps the literal into a CommonJS module.export.

Quote

-q or --quote wraps the literal into quotes.

Double Quite

-d or --double wrap the literal into double quotes.

Readme

Keywords

Package Sidebar

Install

npm i js-string-escape-cli

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bergos