New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@buttercup/search

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@buttercup/search

Vault searching components

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
2
Created
Source

Vault searching components

Build Status

About

This library provides searching utilities for finding entries in Buttercup vaults.

Usage

Use the extraction methods to extract search targets from vaults:

const { extractEntriesFromArchive } = require("@buttercup/search");

const searchItems = extractEntriesFromArchive(vault);

Or vault facades:

const { extractEntriesFromArchiveFacade } = require("@buttercup/search");

const searchItems = extractEntriesFromArchiveFacade(vaultFacade);

Provide these results to the Search class:

const { Search } = require("@buttercup/search");

const search = new Search(searchItems);
search.on("results", evt => {
    // evt is like:
    // {
    //     results: [],
    //     term: "some term"
    // }
});
search.update("some term");

Check out the API documentation for more information.

Keywords

buttercup

FAQs

Package last updated on 04 Mar 2020

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