Skip to content
thin wrapper for nodejs to interact with fedora-commons repository
JavaScript Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
docs
lib
scripts
test
.gitignore
History.md
LICENSE
Makefile
README.md
VERSION
bump-version
package.json

README.md

Fedora Library

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

Configuration

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)

Testing

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

Opportunities

Implementing all of the functionality from Fedora Commons.

Something went wrong with that request. Please try again.