1.0.8 • Published 9 years ago

jof v1.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
9 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

9 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago