( ... )
The easiest way is to grab it from NPM (if you're in the Browser, use Browserify):
$ npm install once-upon-a-time
If you use AMD, or some implementation of CommonJS that doesn't rely on NPM,
you can Download the latest release, which includes the
once-upon-a-time.umd.js file, configure your tool appropriately to load the
If you don't use modules, you can Download the latest release,
which includes the
once-upon-a-time.umd.js file, and just load the file as
you would any other library.
onceUponATime will be a global that you can use:
$ git clone git://github.com/killdream/once-upon-a-time.git $ cd once-upon-a-time $ npm install $ make bundle
This will generate the
dist/once-upon-a-time.umd.js file, which you can
You can either read it online, or generate it yourself:
$ make documentation $ open docs/literate/index.html
$ npm install $ make test
This library assumes an ES5 environment, but can be easily supported in ES3 platforms by the use of shims. Just include es5-shim :)
Copyright (c) 2013 Quildreen Motta.
Released under the MIT licence.