Scanning
Use the lstn
commands to scan your JavaScript project and get results of our analyses through verdicts.
-
lstn in <project-directory>
- Query listen.dev for the verdicts of all the dependencies in your project.
- Requires a
package.json
file
-
lstn to <package>
- Query listen.dev for the verdicts of a single package.
Use the
--json
flag along withjq
to pipe the output of verdicts into a nice readable format
Example
Running lstn to react --json | jq
produces the following output:
[
{
"name": "react",
"version": "16.0.0",
"shasum": "ce7df8f1941b036f02b2cca9dbd0cb1f0e855e2d",
"verdicts": []
},
{
"name": "react",
"version": "17.0.0",
"shasum": "ad96d5fa1a33bb9b06d0cc52672f7992d84aa662",
"verdicts": []
},
{
"name": "react",
"version": "17.0.1",
"shasum": "6e0600416bd57574e3f86d92edba3d9008726127",
"verdicts": []
},
{
"name": "react",
"version": "17.0.2",
"shasum": "d0b5cc516d29eb3eee383f75b62864cfb6800037",
"verdicts": []
},
{
"name": "react",
"version": "18.0.0",
"shasum": "b468736d1f4a5891f38585ba8e8fb29f91c3cb96",
"verdicts": []
},
{
"name": "react",
"version": "18.2.0",
"shasum": "555bd98592883255fa00de14f1151a917b5d77d5",
"verdicts": []
}
]