curiejs

1.0.5 • Public • Published

curiejs

With curiejs you can handle curie links provided by hypermedia (e.g. HATEOAS) APIs.

Install

You can install curiejs with npm:

    npm install curiejs --save

Usage

You can use curiejs in your javascript projects:

    import Curie from 'curiejs'
 
    // Hypermedia link as provided by hypermedia api (e.g. spring-data-rest)
    const link = "http://localhost:4000/api/entity{?page,size,projection}";
 
    // Parameters
    const params = { page: 1, projection: 'detail' };
 
    new Curie(link).toUri(); 
    // --> 'http://localhost:4000/api/entity'
 
    new Curie(link, params).toUri(); 
    // --> 'http://localhost:4000/api/entity?page=1&projection=detail'

License

Relased under the MIT licence by Sebastian Ullrich (deepsource.de).

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.5
    1
  • 1.0.4
    0
  • 1.0.3
    0
  • 1.0.2
    0

Package Sidebar

Install

npm i curiejs

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

9.93 kB

Total Files

8

Last publish

Collaborators

  • sullrich84