get-strings
v1.1.0
Published
`get-strings` =============
Readme
get-strings
NodeJS utility for getting strings defined in Javascript source files.
Usage
npx get-strings path/to/source.jsOutput formats
JSON Lines
This is the default output format.
$ npx get-strings --jsonl example.js
"a"
"b"
"c"JSON
$ npx get-strings --json example.js
[
"a",
"b",
"c"
]Null-terminated strings
Note: this format will not escape null characters in extracted strings.
$ npx get-strings -0 example.js | xargs -0 -n1
a
b
c