libraryd-data
Introduction
libraryd-data
was created to allow users to easily access artifacts and hashes without having to call the LibraryD API endpoint. It exposes functions that allow quick; fast; and easy storage/recall of all OIP/Alexandria artifacts. It will store any new hashes that it requests from LibraryD to speed up future recalls of data.
Installation
Install using NPM
$ npm install libraryd-data
Code Samples
var LDD = ; LDD;LDD;LDD;
Get Artifact using the TXID
This method will return the artifact JSON using only the txid. If a callback function is not provided, then it will only search the local cache.
LDD;
Search for Artifact
This method will return all matching artifacts that match the text provided. This will return up to 50 results.
LDD;