Search npm for packages to use with Deno
Add them to your projects with a simple command that will already feel familar.
find-root
find the closest package.json
color-diff
Implemets the CIEDE2000 color difference algorithm, conversion between RGB and LAB color and mapping all colors in palette X to the closest or most different color in palette Y based on the CIEDE2000 difference.
get-closest
Compare your item to items in an array and get the closest one.
element-closest
Return the closest element matching a selector up the DOM tree
didyoumean2
a library for matching human-quality input to a list of potential matches using the Levenshtein distance algorithm
dom-closest
For a given DOM element, find the first ancestor that matches a given CSS selector.
closest
Find the closest parent that matches a selector.
element-closest-polyfill
A minimal polyfill for Element.closest
mdn-polyfills
MDN polyfills
polytope-closest-point
Computes the closest point to a polytope in arbitrary dimensions
approximate-number
Converts numbers into a more human-friendly format, similar to `ls`'s `--human-readable` flag (`ls -lh`) or Stack Overflow's reputation numbers. For example, 123456 becomes '123k'.
ember-cli-element-closest-polyfill
Ember cli addon that includes a polyfill for closest() if needed.
closest-package
Find the closest package.json file meeting specific criteria
static-kdtree
A kdtree data structure
read-closest-package
reads the closest package.json file
aws-region-utils
Utility functions around AWS Regions, like getting the closest region.
array-binarysearch.closest
Get index of closest value in sorted array.
nearest-date
Given an array of dates, this module will find the date nearest to a given target date. Can be used to find the nearest number as well
find-closest
Like Array.prototype.find, but for finding the closest match.
@extra-array/binary-search.closest
Get index of closest value in sorted array.