Socket
Book a DemoInstallSign in
Socket

libraryd-data

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libraryd-data

Easily search and access Artifact JSON from LibraryD inside Node.JS and Browsers.

1.0.0
latest
npmnpm
Version published
Weekly downloads
6
-25%
Maintainers
1
Weekly downloads
 
Created
Source

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 = require("libraryd-data");

LDD.getArtifact("artifactTXID");
LDD.search("searchTerm");
LDD.changeDataSource("127.0.0.1", false);

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.getArtifact('fb7560ad53d4299b55250583f2f5c7975cd6e0c3c5b587cb49d7eee1799b58cf', function(data){
	console.log(JSON.stringify(data));
});

Search for Artifact

This method will return all matching artifacts that match the text provided. This will return up to 50 results.

LDD.search('test', function(data){
	console.log(JSON.stringify(data));
});

Keywords

Alexandria

FAQs

Package last updated on 11 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.