UNPKG

keysort

Version:

Sorts an Array of Objects with SQL ORDER BY clause syntax

62 lines (61 loc) 1.68 kB
{ "name": "keysort", "description": "Sorts an Array of Objects with SQL ORDER BY clause syntax", "version": "3.0.1", "homepage": "https://github.com/avoidwork/keysort", "author": "Jason Mulligan <jason.mulligan@avoidwork.com>", "repository": { "type": "git", "url": "git://github.com/avoidwork/keysort.git" }, "bugs": { "url": "https://github.com/avoidwork/keysort/issues" }, "type": "module", "types": "types/keysort.d.ts", "source": "src/keysort.js", "main": "dist/keysort.cjs", "exports": { "types": "./types/keysort.d.ts", "import": "./dist/keysort.js", "require": "./dist/keysort.cjs" }, "files": [ "dist", "types" ], "license": "BSD-3-Clause", "engines": { "node": ">=14.0.0" }, "scripts": { "build": "npm run lint && rm -rf dist && npm run rollup && npm run mocha", "changelog": "auto-changelog -p", "fix": "eslint --fix *.js src/*.js test/*.js", "lint": "eslint *.js src/*.js test/*.js", "mocha": "nyc mocha test/*.js", "rollup": "rollup --config", "test": "npm run lint && npm run mocha", "types": "npx -p typescript tsc src/keysort.js --declaration --allowJs --emitDeclarationOnly --outDir types", "prepare": "husky install" }, "dependencies": {}, "devDependencies": { "@rollup/plugin-terser": "^0.4.3", "auto-changelog": "^2.4.0", "eslint": "^8.51.0", "husky": "^8.0.3", "mocha": "^10.2.0", "nyc": "^15.1.0", "rollup": "^4.0.2", "typescript": "^5.2.2" }, "keywords": [ "Array", "Object", "sort", "keys", "SQL", "ORDER BY" ] }