UNPKG

filesize

Version:

JavaScript library to generate a human readable String describing the file size

63 lines (62 loc) 1.55 kB
{ "name": "filesize", "description": "JavaScript library to generate a human readable String describing the file size", "version": "11.0.0", "homepage": "https://filesizejs.com", "author": "Jason Mulligan <jason.mulligan@avoidwork.com>", "repository": { "type": "git", "url": "git://github.com/avoidwork/filesize.js.git" }, "bugs": { "url": "https://github.com/avoidwork/filesize.js/issues" }, "files": [ "dist/filesize.js", "dist/filesize.cjs", "types" ], "license": "BSD-3-Clause", "source": "src/filesize.js", "module": "dist/filesize.js", "main": "dist/filesize.cjs", "exports": { "types": "./types/filesize.d.ts", "import": "./dist/filesize.js", "require": "./dist/filesize.cjs" }, "type": "module", "sourceType": "module", "types": "types/filesize.d.ts", "engines": { "node": ">= 10.4.0" }, "scripts": { "build": "npm run rollup", "changelog": "auto-changelog -p", "lint": "eslint *.js src/*.js tests/**/*.js", "fix": "eslint --fix *.js src/*.js tests/**/*.js", "mocha": "c8 mocha tests/**/*.js", "rollup": "rollup --config", "test": "npm run lint && npm run mocha", "prepare": "husky" }, "devDependencies": { "@rollup/plugin-terser": "^0.4.4", "auto-changelog": "^2.5.0", "c8": "^10.1.3", "eslint": "^9.30.1", "husky": "^9.1.7", "mocha": "^11.7.1", "rollup": "^4.44.2" }, "keywords": [ "file", "filesize", "size", "readable", "file system", "bytes", "diff" ] }