JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 49
  • Score
    100M100P100Q16656F

Package Exports

  • algorithmia

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (algorithmia) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

algorithmia.js

A nodejs library for calling algorithms on Algorithmia.com

Usage

Add algorithmia to your package.json

npm install --save algorithmia

Call any algorithm on the Algorithmia platform:

var algorithmia = require("algorithmia");

algorithmia.setApiKey(process.env.ALGORITHMIA_API_KEY);

var req = algorithmia.exec("brejnko/UrlLinkList", "https://www.algorithmia.com");

req.success(function(result, duration) {
  console.log("Completed in "+duration+" seconds.");
  console.log(result);
});

req.error(function(err, responseCode, stacktrace) {
  console.error("ERROR "+responseCode+": "+err);
});

Build

Currently tested with nodejs v0.10.36

# install dev dependencies
npm install

# compile coffeescript
gulp