3.0.1 • Published 3 years ago

sigdb v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

sigdb

Node.js CI codecov

A file signature database manager

Usage

To install:

npm install -E sigdb

To use:

const { createSignatureDatabase }= require('sigdb')
const sigdb = await createSignatureDatabase()

Methods

  /**
   * Provided a buffer of binary bytes, will return either the matching signature name as a string, or `undefined`
   */
  find(haystack: Buffer): FileSignatureRecord | undefined
  /**
   * Get an array of signature names in the database
   */
  getSignatureNames(): string[] 
  /**
   * Add a file signature
   */
  addFileSignature(id: string, name: string, signature: Buffer): void 

Types

/**
 * @typedef FileSignatureRecord
 * @property {string} id
 * @property {Buffer} signature
 * @property {String} name
 */
3.0.1

3 years ago

3.0.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago