jof
1.0.8 • Public • Published jof
⚡️ Just one file ⚡️
For quick prototyping write server and client code in a single file
example
var jof = require('jof')
jof({
initialize: (server) => {
},
browserify: [],
routes: {
'/' : (opt, q, r) => {
r.end(jof.html(opt.client['/app.js']))
}
},
client: {
'/app.js' : () => {
alert('I will be browserified')
}
}
})
Package Sidebar
Install
Weekly Downloads