0.1.0 • Published 8 years ago

node-alchemy v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

node-alchemy

Last version Dependency status Dev Dependencies Status NPM Status Donate

Node/Browser Client to interact with AlchemyAPI.

Install

npm install node-alchemy --save

If you want to use in the browser (powered by Browserify):

bower install node-alchemy --save

and later link in your HTML:

<script src="bower_components/node-alchemy/dist/node-alchemy.js"></script>

Usage

First require the library:

var AlchemyAPI = require('node-alchemy');

Minimal configuration:

var meaning = AlchemyAPI({
  key: process.env.API_KEY // API Key. Required.
  secure: true             // HTTPS or HTTPS. Optional, true by default.
  uri: 'custom-uri'        // URI to create the API endpoints. Optional.
});

Check the list of AlchemyAPI endpoints.

var meaning = AlchemyAPI({
  key: process.env.API_KEY
});

The library support standard NodeJS callback and Promise workflow as well.

Examples

See example.js

License

MIT © Kiko Beats