0.1.0 • Published 10 years ago
node-alchemy v0.1.0
node-alchemy
Node/Browser Client to interact with AlchemyAPI.
Install
npm install node-alchemy --saveIf you want to use in the browser (powered by Browserify):
bower install node-alchemy --saveand 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
0.1.0
10 years ago