Nerds Publishing Monstrosities
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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) 

Keywords

none

install

npm i tmb.js

Downloadsweekly downloads

1

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability