array-push-at-sort-position
Version:
Push items to an array at their correct sort-position
68 lines (67 loc) • 2.07 kB
JSON
{
"name": "array-push-at-sort-position",
"description": "Push items to an array at their correct sort-position",
"version": "4.0.1",
"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.23.0",
"@babel/core": "7.23.0",
"@babel/plugin-check-constants": "7.0.0-beta.38",
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
"@babel/plugin-transform-member-expression-literals": "7.22.5",
"@babel/plugin-transform-property-literals": "7.22.5",
"@babel/plugin-transform-runtime": "7.22.15",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.22.20",
"@babel/types": "7.23.0",
"assert": "2.1.0",
"async-test-util": "2.1.1",
"browserify": "17.0.0",
"cross-env": "7.0.3",
"eslint": "8.51.0",
"mocha": "10.2.0",
"pre-commit": "1.2.2",
"rimraf": "5.0.5"
}
}