Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tartan-fingerprint

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

tartan-fingerprint

Extension for the tartan library that allows to flexibly compare tartans by threadcounts and/or palettes.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Tartan Fingerprint

Extension for the tartan library that allows to flexibly compare tartans by threadcounts and/or palettes.

Usage

After including this extension to the project, tartan.fingerprint will be available. Use tartan.fingerprint.create(string sett, object defaultColors) to create a fingerprint of tartan; returned value is opaque and should be passed to comparison function. tartan.fingerprint.compare(left, right) takes two fingerprints and returns several numbers: distance by sett, distance by palette and aggregated value. Each of that numbers is not a kind of absolute measure, but rather a value that should be used to decide which of tartans from some list is closer to searched one. For example, refer to helper function tartan.fingerprint.search(items, fingerprint) which accepts a list of object (each of them should have a fingerprint field), and returns an ordered subset of items that are the best matching to provided fingerprint.

Keywords

FAQs

Package last updated on 21 Dec 2016

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc