node-alchemy
v0.1.0
Published
Node/Browser Client to interact with AlchemyAPI.
Downloads
21
Maintainers
Readme
node-alchemy
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