Jan is a simple library for making HTTP requests.
Issue network calls without dealing with awkward legacy API signatures.
"AJAX" just isn't a thing anymore.
It's 2014, we're on Web 3.0 or some "living document" version of the web by now.
We don't need to invent names for basic concepts like making HTTP requests.
- Am I using a DOM manipulation library to do networking?
- Would I consider using a NPM package that both rendered HTML templates and abstracted WebSocket communications?
Application architecture is easier when it isn't tied to monolithic frameworks.
It's time to drop those aging AJAX APIs and get back to the basics of what makes networking simple.
Basic GET request:
Request with all options:
Plugins / Events
Hook requests with the
// A plugin that adds an API key header to all requests:jan;
Hook responses with the
// A plugin that parses CSV responsesjan;
Via node / browserify:
var jan = ;
Via AMD / requirejs:
Via globals / script tag:
Installation via Bower: (Recommended)
bower install jan