node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey ยป


Fedora Library

Library to be able to query a Fedora Commons instance from Node.js using the official Fedora REST API.


There are 2 ways to configure the package:

Hard coding it into lib/fedora.js fedora.js contains a commented out snippet that could be used

The recommended way is using the configure method called from your application or library var fedora = require("fedora") var config = { fedoraURL : "localhost", // Don't add http:// fedoraPort : 9090, fedoraAuth : "fedoraAdmin:admin" }; fedora.configure(config)


There are some tests which can be run, the tests use the 'mocha' framework and assumes that there is fedora-commons repository installed.


Implementing all of the functionality from Fedora Commons.