UNPKG

stream-size

Version:

Get the size of a stream and abort it if threshold is reached

72 lines (71 loc) 2.07 kB
{ "name": "stream-size", "version": "0.0.6", "description": "Get the size of a stream and abort it if threshold is reached", "main": "dist/commonjs/index.js", "module": "dist/es6/index.js", "repository": "Sumolari/stream-size", "folder": "dist", "author": "Lluís Ulzurrun de Asanza Sàez <me@llu.is> (http://llu.is)", "license": "MIT", "private": false, "keywords": [ "stream", "size", "bytes", "length", "content-length", "typescript" ], "files": [ "dist/**/*" ], "scripts": { "lint": "eslint **/*.ts", "lint:build": "es-check es5 dist/commonjs/*.js", "build": "run-s build:* lint:build", "build:commonjs": "tsc --p tsconfig.commonjs.json", "build:es6": "tsc --p tsconfig.es6.json", "test": "run-s lint coverage", "coverage": "nyc mocha", "deduplicate": "yarn-deduplicate yarn.lock", "format": "prettier --config .prettierrc 'src/**/*.ts' 'test/**/*.ts' --write", "prepublishOnly": "run-s test build" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "devDependencies": { "@changesets/cli": "^2.9.2", "@istanbuljs/nyc-config-typescript": "^1.0.1", "@types/chai": "^4.2.12", "@types/chai-as-promised": "^7.1.3", "@types/mocha": "^8.0.1", "@types/streamtest": "^1.2.0", "@typescript-eslint/eslint-plugin": "^3.7.1", "@typescript-eslint/parser": "^3.7.1", "chai": "^4.2.0", "chai-as-promised": "^7.1.1", "es-check": "^5.1.0", "eslint": "^7.6.0", "eslint-config-standard": "^14.1.1", "eslint-plugin-import": "^2.22.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", "husky": "^4.2.5", "lint-staged": "^10.2.11", "mocha": "^8.1.0", "mocha-multi-reporters": "^1.1.7", "npm-run-all": "^4.1.5", "nyc": "^15.1.0", "prettier": "^2.0.5", "source-map-support": "^0.5.19", "streamtest": "^2.0.0", "ts-node": "^8.10.2", "typescript": "^3.9.7", "yarn-deduplicate": "^2.1.1" } }