tmb.js

0.1.0 • Public • Published

tmb.js

Build Status

TMB API Javascript library

Dependencies

The ones defined in package.json. Run npm install.

Running examples

Browser

This will fire an http server:

npm start

Node

npm run setup  # Make sure all requirements are met
node examples/node/search.js   # Run a node example

Loading the library in different environments

Vanilla browser (global var)

<script type="text/javascript" src="axios.js"></script>
<script type="text/javascript" src="tmb.js"></script>
<script type="text/javascript">
    var api = tmb("<app_id>", "<app_key>");
</script>

Browser with require.js (AMD module)

require(["tmb"], function(tmb) {
    var api = tmb("<app_id>", "<app_key>");
});

Node (CommonJS module)

var api = require("tmb")("<app_id>", "<app_key>");

Tests

npm test               # Test on node
npm run test:browsers  # Test on browsers (and keep watching on file changes)

Readme

Keywords

none

Package Sidebar

Install

npm i tmb.js

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • oscarfonts