jsstrings

1.0.3 • Public • Published

jsstrings

Like the UNIX strings utility, but for JS code. Specifically it outputs all text in string literals in some given JS code.

Usage examples:

$ echo '"double quoted string"; const x = 1+1' | npx jsstrings
double quoted string
$ echo '"double quoted string"; const x = 1+1' > somefile.js ; npx jsstrings somefile.js
double quoted string
$ echo '"double quoted string"; const x = 1+1' > somefile.js ; npx jsstrings somefile.js somefile.js
double quoted string
double quoted string

Readme

Keywords

none

Package Sidebar

Install

npm i jsstrings

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

3.61 kB

Total Files

5

Last publish

Collaborators

  • gpittarelli