find-closest
Version:
Like Array.prototype.find, but for finding the closest match.
62 lines (61 loc) • 1.22 kB
JSON
{
"name": "find-closest",
"version": "7.0.1",
"description": "Like Array.prototype.find, but for finding the closest match.",
"author": "Daniel Levett",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/dlevs/find-closest"
},
"keywords": [
"find",
"closest",
"fuzzy",
"search",
"array",
"collection",
"approx",
"approximate",
"nearest"
],
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.module.js",
"unpkg": "dist/index.umd.js",
"files": [
"/dist"
],
"scripts": {
"test": "jest",
"build": "microbundle",
"prepublish": "npm test && npm run build"
},
"devDependencies": {
"@types/jest": "26.0.10",
"jest": "26.4.2",
"microbundle": "0.12.3",
"prettier": "2.1.1",
"ts-jest": "26.3.0",
"tsd": "0.13.1",
"typescript": "4.0.2"
},
"prettier": {
"semi": false,
"singleQuote": true
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
}