UNPKG

array-push-at-sort-position

Version:

Push items to an array at their correct sort-position

67 lines (66 loc) 2.01 kB
{ "name": "array-push-at-sort-position", "description": "Push items to an array at their correct sort-position", "version": "5.0.0", "author": "pubkey", "license": "Apache-2.0", "keywords": [ "array", "push", "sort", "insert", "binary-search", "sorting", "binary-insert", "indexing" ], "scripts": { "lint": "eslint src test", "preversion": "npm run lint && npm run test", "build:es6": "cross-env NODE_ENV=es6 babel src --out-dir dist/esm && echo '{ \"type\": \"module\" }' > dist/esm/package.json", "build:es5": "cross-env NODE_ENV=es5 babel src --out-dir dist/cjs", "build:test": "cross-env NODE_ENV=es5 babel test --out-dir test_tmp", "build": "npm run clear && npm run build:es6 && npm run build:es5 && npm run build:test", "clear": "rimraf -rf ./dist", "test": "npm run build && mocha ./test_tmp/unit.test.js --bail" }, "repository": { "type": "git", "url": "git+https://github.com/pubkey/array-push-at-sort-position.git" }, "pre-commit": [ "lint" ], "exports": { ".": { "default": { "types": "./src/index.d.ts", "import": "./dist/esm/index.js", "default": "./dist/cjs/index.es5.js" } }, "./package.json": "./package.json" }, "main": "./dist/cjs/index.es5.js", "module": "./dist/esm/index.js", "types": "./src/index.d.ts", "devDependencies": { "@babel/cli": "7.28.6", "@babel/core": "7.29.0", "@babel/plugin-proposal-object-rest-spread": "7.20.7", "@babel/plugin-transform-member-expression-literals": "7.27.1", "@babel/plugin-transform-property-literals": "7.27.1", "@babel/plugin-transform-runtime": "7.29.0", "@babel/polyfill": "7.12.1", "@babel/preset-env": "7.29.0", "@babel/types": "7.29.0", "assert": "2.1.0", "async-test-util": "2.5.0", "browserify": "17.0.1", "cross-env": "10.1.0", "eslint": "8.57.1", "mocha": "11.7.5", "pre-commit": "1.2.2", "rimraf": "6.1.3" } }