jof

1.0.8 • Public • Published

jof

⚡️ Just one file ⚡️

For quick prototyping write server and client code in a single file

js-standard-style

example

var jof = require('jof')
jof({
  initialize: (server) => {
    // do something with http server
  },
  // browserify extra options
  browserify: [],
  routes: {
    '/' : (opt, q, r) => {
      r.end(jof.html(opt.client['/app.js']))
    }
  },
  client: {
    '/app.js' : () => {
      alert('I will be browserified')
    }
  }
})

Readme

Keywords

Package Sidebar

Install

npm i jof

Weekly Downloads

8

Version

1.0.8

License

MIT

Last publish

Collaborators

  • jameskyburz