For some projects, the data returned from npm audit --json can be quite significant in size. This change refactors the code to use command.spawn and a stream of data events, instead of command.exec and a fixed sized buffer. Allowing the stderr/stdout data to stream via events ensures that the application can handle much larger data structures.
Resolves #41
Description
For some projects, the data returned from
npm audit --json
can be quite significant in size. This change refactors the code to usecommand.spawn
and a stream of data events, instead ofcommand.exec
and a fixed sized buffer. Allowing the stderr/stdout data to stream via events ensures that the application can handle much larger data structures.