libp2p / observer-toolkit

🐣 [WIP] toolkit for building libp2p introspection widgets + a few useful out-of-the-box widgets
https://libp2p.io
MIT License
2 stars 2 forks source link

Generating mock files from stdout works fine #34

Closed ovhemert closed 4 years ago

ovhemert commented 4 years ago

This functionality actually works. Removing comment in code.

Running node ./mock/mock.js > somefile generates valid output.

The problem is with running the npm-script. This echos the execution command in front of the data, which ends up in the file.

Alternative way to run the npm-script: npm run mock --silent > somefile