flatiron-jquery

Serve jquery static files in flatiron

Usage no npm install needed!

<script type="module">
  import flatironJquery from 'https://cdn.skypack.dev/flatiron-jquery';
</script>

README

flatiron-jquery

Serve jquery static file in flatiron

Installation

npm install flatiron-jquery

Usage

At its core flatiron-jquery is a broadway-compatible plugin which can be used by any flatiron http application with a static serving plugin

var flatiron = require('flatiron'),
    path = require('path'),
    app = flatiron.app;

app.config.file({ file: path.join(__dirname, 'config', 'config.json') });

app.use(flatiron.plugins.http);
app.use(flatiron.plugins.ecstatic);

app.use(require('flatiron-jquery'));

app.router.get('/', function () {
  this.res.json({ 'hello': 'world' })
});

app.start(3000);

Now start the server with

node app.js

and the following url will serve jquery.min.js v1.7.2

http://localhost:3000/js/jquery.min.js

NOTE

The version of this package is equal to the version of jquery served.

If you like this project, please watch this and follow me.

Testing

npm test

Contributors

Here is a list of Contributors

TODO

I accept pull requests and guarantee a reply back within a day

License

MIT/X11

Bug Reports

Report here. Guaranteed reply within a day.

Contact

Pavan Kumar Sunkara (pavan.sss1991@gmail.com)

Follow me on github, twitter