{"_attachments":{},"_id":"js-to-file","_rev":"1570438-61f41e7ee5fc466b4cb0a6a4","author":{"name":"Daniel Perez Alvarez","email":"danielpza@protonmail.com"},"description":"Evaluate js and output result to file","dist-tags":{"latest":"1.1.0"},"license":"MIT","maintainers":[{"name":"danielpanpm","email":"danielpza@protonmail.com"}],"name":"js-to-file","readme":"# js-to-file\n\n[![npm version](https://img.shields.io/npm/v/js-to-file.svg)](https://www.npmjs.com/package/js-to-file)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nEvaluate js and output result to file\n\n## Install\n\n```sh\n$ npm install --save-dev js-to-file\n```\n\n## Usage\n\n```sh\n$ js2file templates/ --outDir dist --ext html\n```\n\n## Options\n\n```\n$ js2file --help\n\nUsage\n $ js2file [folder]\n\nOptions\n --outDir where to output files to, defaults to [folder]\n --ext resulting extension, required\n --require require file before execution\n\nExamples\n $ js2file templates/ --outDir dist --ext html\n typescript\n $ js2file templates/ --outDir dist --ext html --require ts-node/register\n ttypescript\n $ TS_NODE_COMPILER=ttsc js2file templates/ --outDir dist --ext html --require ts-node/register\n```\n\n## Example\n\n```js\n// templates/home.js\nexports.default = () => \"