UNPKG

package-cost

Version:

Gets NPM package size - packed, unpacked, bundled, compressed - including dependencies recursively.

65 lines 2.9 kB
{ "name": "package-cost", "version": "0.4.0", "description": "Gets NPM package size - packed, unpacked, bundled, compressed - including dependencies recursively.", "homepage": "https://github.com/prantlf/package-cost#readme", "author": { "name": "Ferdinand Prantl", "email": "prantlf@gmail.com", "url": "http://prantl.tk" }, "repository": { "type": "git", "url": "https://github.com/prantlf/package-cost.git" }, "bugs": { "url": "https://github.com/prantlf/package-cost/issues" }, "license": "MIT", "licenses": [ { "type": "MIT", "url": "https://github.com/prantlf/package-cost/blob/master/LICENSE" } ], "engines": { "node": ">=14.14" }, "files": [ "lib" ], "bin": { "package-cost": "lib/bin.js" }, "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { "test": "mkdir -p test/actual && c8 node lib/bin && c8 --no-clean node lib/bin -V && c8 --no-clean node lib/bin -h && c8 --no-clean node lib/bin -x || c8 --no-clean node lib/bin -p p || c8 --no-clean node lib/bin -e e || c8 --no-clean node lib/bin -s s || c8 --no-clean node lib/bin -d d || c8 --no-clean node lib/bin @prantlf/none || c8 --no-clean node lib/bin --verbose @prantlf/none || c8 --no-clean node lib/bin -c -e none 'janadom@~0.1.0 || ~0.1.1' | sort > test/actual/janadom.txt && c8 --no-clean node lib/bin -n janadom@0.1.2 | sort > test/actual/janadom2.txt && c8 --no-clean node lib/bin -t janadom@0.1.2 | sort > test/actual/janadom3.txt && c8 --no-clean node lib/bin -jvw -p 5 -e all baretest@2.0.0 barecolor@1.0.1 baretest@2.0.0 | sort > test/actual/baretest.txt && c8 --no-clean node lib/bin -jv -p 5 -a baretest@2.0.0 barecolor@1.0.1 baretest@2.0.0 | sort > test/actual/baretest2.txt && c8 --no-clean node lib/bin -t -s minified -d desc -p 5 -a baretest@2.0.0 barecolor@1.0.1 > test/actual/baretest3.txt && c8 --no-clean node lib/bin -v test@0.6.0 | sort > test/actual/test.txt && c8 --no-clean node lib/bin.js janadom@git+https://github.com/prantlf/janadom.git && diff -u test/janadom.txt test/actual/janadom.txt && diff -u test/janadom.txt test/actual/janadom2.txt && diff -u test/janadom3.txt test/actual/janadom3.txt && diff -u test/baretest.txt test/actual/baretest.txt && diff -u test/baretest2.txt test/actual/baretest2.txt && diff -u test/baretest3.txt test/actual/baretest3.txt && diff -u test/test.txt test/actual/test.txt && c8 --no-clean node test/test && c8 report -r text && c8 check-coverage" }, "c8": { "reporter": [ "lcov" ], "branches": 100, "lines": 100, "functions": 100, "statements": 100 }, "dependencies": { "esbuild": "^0.25.2", "tar-stream": "^3.1.7" }, "devDependencies": { "c8": "^10.1.3" }, "keywords": [ "download-size", "package-size", "npm-size", "npm-cost", "npm", "package", "size", "cost" ] }