1.0.8 • Published 8 years ago

jof v1.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

jof

:zap: Just one file :zap:

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')
    }
  }
})
1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago