require-to-json

0.0.3 • Public • Published

require-to-json

Require a JavaScript file and print JSON result to stdout

Installation

npm install --global require-to-json

Command-line usage

require-to-json file.js
require-to-json < file.js
cat file.js | require-to-json
echo 'module.exports = 123 + 456' | require-to-json

Package Sidebar

Install

npm i require-to-json

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • khai96_