UNPKG

@tsdotnet/array-utility

Version:

A small collection of useful array functions.

86 lines (85 loc) 2.66 kB
{ "name": "@tsdotnet/array-utility", "version": "1.0.25", "description": "A small collection of useful array functions.", "author": "electricessence", "license": "MIT", "types": "dist/arrayUtility.d.ts", "main": "dist/arrayUtility.js", "module": "dist-esm/arrayUtility.js", "keywords": [ "array", "indexOf", "contains", "replace", "updateRange", "clearEach", "register", "findIndex", "forEach", "applyTo", "removeIndex", "remove", "repeat", "range", "rangeUntil", "distinct", "flatten", "init", "copy", "copyTo" ], "scripts": { "build:dist": "rimraf dist/* && tsc && copyfiles -u 1 src/**/*.d.ts dist", "build:dist-esm": "rimraf dist-esm/* && tsc -p tsconfig.esm.json", "build": "pnpm i && pnpm run build:dist && pnpm run build:dist-esm", "bump": "npm run-script precommit && npm version patch", "docs": "rimraf docs/* && typedoc --options typedoc.json --readme none", "lint": "eslint src/**/*.ts", "precommit": "pnpm i && run-p lint test && run-p build:* && npm run-script validate && git status -s", "prepublishOnly": "npm run-script build && run-p validate test", "preversion": "run-p lint test", "postversion": "git push && git push --tags && npm run-script docs && git commit -m \"Updated docs.\" docs && git push", "test": "mocha -r ts-node/register tests/**/*.ts", "validate": "node ./.build/validate-package.js" }, "repository": { "type": "git", "url": "git+https://github.com/tsdotnet/array-utility.git" }, "bugs": { "url": "https://github.com/tsdotnet/array-utility/issues" }, "homepage": "https://github.com/tsdotnet/array-utility#readme", "devDependencies": { "@tsdotnet/common-interfaces": "^1.0.4", "@types/chai": "^4.3.0", "@types/mocha": "^9.1.0", "@types/node": "^17.0.17", "@typescript-eslint/eslint-plugin": "^5.11.0", "@typescript-eslint/parser": "^5.11.0", "chai": "^4.3.6", "copyfiles": "^2.4.1", "eslint": "^8.9.0", "eslint-config-typescript": "^3.0.0", "eslint-plugin-import": "^2.25.4", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^6.0.0", "mocha": "^9.2.0", "npm-run-all": "^4.1.5", "nyc": "^15.1.0", "rimraf": "^3.0.2", "ts-node": "^10.5.0", "typedoc": "^0.22.11", "typescript": "^4.5.5" }, "dependencies": { "@tsdotnet/array-copy": "^1.0.16", "@tsdotnet/array-init": "^1.0.11", "@tsdotnet/compare": "^1.3.20", "@tsdotnet/exceptions": "^1.0.18", "@tsdotnet/integer": "^1.0.14", "@tsdotnet/type": "^1.0.13", "tslib": "^2.3.1" } }