@alexkreidler/alcaeus
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Alcaeus npm version Code coverage

Hydra Core library for JavaScript

Alcaeus (pronounced AL-SEE-UHS) is a Node.js/browser library for consuming Hydra APIs.

Alcaeus is the birth name of Heracles. The demigod who defeated Hydra.

Installation

Use npm or yarn:

npm i -S alcaeus

Usage

import { Hydra } from 'alcaeus/web' // (or 'alcaeus/node')

const { response, representation } = await Hydra.loadResource('http://example.com/resource');
const rootResource = representation.root;

// contains supported classes, operations, etc.
const apiDocs = Hydra.apiDocumentations[0];
    
const id = rootResource.id; 

To learn more head to http://alcaeus.hydra.how.

More examples (outdated)

License

MIT

/@alexkreidler/alcaeus/

    Package Sidebar

    Install

    npm i @alexkreidler/alcaeus

    Weekly Downloads

    5

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    527 kB

    Total Files

    198

    Last publish

    Collaborators

    • alexkreidler