Load JS and transform to HTML
npm install rosid-handler-node   
A function that loads a JS file and transforms it to HTML by executing the exported default function. The export function can either be a asynchronous callback function or a async function returning a Promise.
```
npm install rosid-handler-node
`js
const handler = require('rosid-handler-node')
handler('index.js').then((data) => {})
handler('index.html').then((data) => {})
`
Add the following object to your rosidfile.json, rosidfile.js or routes array. rosid-handler-node will execute all matching JS files in your source folder and save the output as static HTML.
`json`
{
"name" : "Node",
"path" : "[^_].{html,js}",
"handler" : "rosid-handler-node"
}
`js
// index.js
// Works with asynchronous callback functions
export default (next) => next(null, '
`html
Hello World
`Parameters
-
filePath {String} Absolute path to file.Returns
-
{Promise