mds-client

1.1.2 • Public • Published

mds-client

FIDO Metadata Service (MDS) Client

Retreives metadata table of contents (TOC) from MDS as well as any retreivable entries.

For more about FIDO, visit: https://fidoalliance.org

Installation

npm install mds-client

API

var MDSC = require("mds-client");
var mdsClient = new MDSC(/* opt */);
mdsClient.fetchToc()
    .then(function (toc) {
        // do stuff with MDS TOC
        });
 
mdsClient.fetchEntries()
    .then(function (entries) {
        // do stuff with MDS entries
        });
  • constructor(opts) - the constructor takes an options object argument with the following options:
    • url (default: https://mds.fidoalliance.org) - the URL for fetching the MDS TOC
    • parallelFetchLimit (default: 5) - the number of parallel requests when fetching metadata entries
  • fetchToc - returns a Promise that resolves to a object containing the MDS TOC
  • fetchEntries - returns a Promies that resolves to an Array of all metadata entries

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.2
    2
  • 1.1.1
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i mds-client

Weekly Downloads

2

Version

1.1.2

License

MIT

Last publish

Collaborators

  • apowers313