UNPKG

compare-by

Version:

A versatile utility library for sorting arrays of objects by one or multiple keys with customizable sort directions.

41 lines (40 loc) 1.01 kB
{ "name": "compare-by", "version": "2.1.0", "description": "A versatile utility library for sorting arrays of objects by one or multiple keys with customizable sort directions.", "keywords": [ "compare", "sorting", "objects", "arrays", "keys", "direction", "utility", "library", "sorting utility", "multisort", "nested keys" ], "main": "./out/index.js", "repository": "git@github.com:tobiaswaelde/compare-by.git", "author": { "name": "Tobias Wökde", "email": "tobias.waelde@gmail.com", "url": "https://tobiaswaelde.com" }, "license": "MIT", "scripts": { "dev": "ts-node ./src/index.ts", "prebuild": "rm -rf ./out", "build": "tsc --project tsconfig.build.json", "pretest": "jest --clearCache", "test": "jest" }, "devDependencies": { "@types/jest": "^29.5.6", "jest": "^29.7.0", "ts-jest": "^29.1.1", "ts-node": "^10.9.1", "typescript": "^5.2.2" } }