{
  "manifest": {
    "name": "filesize",
    "description": "JavaScript library to generate a human readable String describing the file size",
    "version": "8.0.7",
    "homepage": "https://filesizejs.com/",
    "author": {
      "name": "Jason Mulligan",
      "email": "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": [
      "lib",
      "*.d.ts"
    ],
    "license": "BSD-3-Clause",
    "browser": "lib/filesize.min.js",
    "main": "lib/filesize.js",
    "module": "lib/filesize.esm.js",
    "types": "filesize.d.ts",
    "engines": {
      "node": ">= 0.4.0"
    },
    "scripts": {
      "build": "rollup -c",
      "watch": "rollup -c -w",
      "changelog": "auto-changelog -p",
      "test": "npm run build && npm run lint && npm run test:unit && npm run test:type",
      "test:unit": "nodeunit test/filesize_test.js",
      "test:type": "tsc -p test",
      "lint": "eslint test/*.js src/*.js"
    },
    "devDependencies": {
      "@babel/core": "^7.16.0",
      "@babel/preset-env": "^7.16.0",
      "auto-changelog": "^2.3.0",
      "eslint": "^8.1.0",
      "nodeunit-x": "^0.15.0",
      "rollup": "^2.58.3",
      "rollup-plugin-babel": "^4.4.0",
      "rollup-plugin-terser": "^7.0.2",
      "typescript": "^3.9.0"
    },
    "keywords": [
      "file",
      "filesize",
      "size",
      "readable",
      "file system",
      "bytes",
      "diff"
    ],
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-filesize-8.0.7-695e70d80f4e47012c132d57a059e80c6b580bd8-integrity/node_modules/filesize/package.json",
    "readmeFilename": "README.md",
    "readme": "# filesize.js\n\n[![build status](https://secure.travis-ci.org/avoidwork/filesize.js.svg)](http://travis-ci.org/avoidwork/filesize.js)  [![downloads](https://img.shields.io/npm/dt/filesize.svg)](https://www.npmjs.com/package/filesize) [![CDNJS version](https://img.shields.io/cdnjs/v/filesize.svg)](https://cdnjs.com/libraries/filesize)\n\nfilesize.js provides a simple way to get a human readable file size string from a number (float or integer) or string.\n\n## Optional settings\n\n`filesize()` accepts an optional descriptor Object as a second argument, so you can customize the output.\n\n### base\n_*(number)*_ Number base, default is `10`\n\n### bits\n_*(boolean)*_ Enables `bit` sizes, default is `false`\n\n### exponent\n_*(number)*_ Specifies the symbol via exponent, e.g. `2` is `MB` for base 2, default is `-1`\n\n### fullform\n_*(boolean)*_ Enables full form of unit of measure, default is `false`\n\n### fullforms\n_*(array)*_ Array of full form overrides, default is `[]`\n\n### locale (overrides 'separator')\n_*(string || boolean)*_ BCP 47 language tag to specify a locale, or `true` to use default locale, default is `\"\"`\n\n### localeOptions (overrides 'separator', requires string for 'locale' option)\n_*(object)*_ Dictionary of options defined by ECMA-402 ([Number.prototype.toLocaleString](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString)). Requires locale option to be explicitly passed as a string, otherwise is ignored.\n\n### output\n_*(string)*_ Output of function (`array`, `exponent`, `object`, or `string`), default is `string`\n\n### pad\n_*(boolean)*_ Decimal place end padding, default is `false`\n\n### precision\n_*(number)*_ Sets precision of numerical output, default is `0`\n\n### round\n_*(number)*_ Decimal place, default is `2`\n\n### roundingMethod\n_*(string)*_ Rounding method, can be `round`, `floor`, or `ceil`, default is `round`\n\n### separator\n_*(string)*_ Decimal separator character, default is `.`\n\n### spacer\n_*(string)*_ Character between the `result` and `symbol`, default is `\" \"`\n\n### standard\n_*(string)*_ Standard unit of measure, can be `iec` or `jedec`, default is `iec`; can be overruled by `base`\n\n### symbols\n_*(object)*_ Dictionary of IEC/JEDEC symbols to replace for localization, defaults to english if no match is found\n\n### unix\n_*(boolean)*_ Enables unix style human readable output, e.g `ls -lh`, default is `false`\n\n## Examples\n\n```javascript\nfilesize(500);                        // \"500 B\"\nfilesize(500, {bits: true});          // \"4 kbit\"\nfilesize(265318, {base: 2});          // \"259.1 KiB\"\nfilesize(265318);                     // \"265.32 kB\"\nfilesize(265318, {round: 0});         // \"265 kB\"\nfilesize(265318, {output: \"array\"});  // [265.32, \"kB\"]\nfilesize(265318, {output: \"object\"}); // {value: 265.32, symbol: \"kB\", exponent: 1, unit: \"kB\"}\nfilesize(1, {symbols: {B: \"Б\"}});     // \"1 Б\"\nfilesize(1024);                       // \"1.02 kB\"\nfilesize(1024, {exponent: 0});        // \"1024 B\"\nfilesize(1024, {output: \"exponent\"}); // 1\nfilesize(265318, {standard: \"jedec\"});  // \"259.1 KB\"\nfilesize(265318, {base: 2, fullform: true}); // \"259.1 kibibytes\"\nfilesize(12, {fullform: true, fullforms: [\"байтов\"]});  // \"12 байтов\"\nfilesize(265318, {separator: \",\"});   // \"265,32 kB\"\nfilesize(265318, {locale: \"de\"});   // \"265,32 kB\"\n```\n\n## Partial Application\n`filesize.partial()` takes the second parameter of `filesize()` and returns a new function with the configuration applied \nupon execution. This can be used to reduce `Object` creation if you call `filesize()` without caching the `descriptor` \nin lexical scope.\n\n```javascript\nconst size = filesize.partial({base: 2, standard: \"jedec\"});\n\nsize(265318); // \"259.1 KB\"\n```\n\n## How can I load filesize.js?\nfilesize.js supports AMD loaders (require.js, curl.js, etc.), node.js & npm (```npm install filesize```), or using a script tag.\n\nAn ES6 version is bundled with an npm install, but requires you load it with the full path, e.g. `require(path.join(__dirname, 'node_modules', 'filesize', 'lib', 'filesize.es6.js'))`.\n\n## License\nCopyright (c) 2022 Jason Mulligan\nLicensed under the BSD-3 license.\n",
    "licenseText": "Copyright (c) 2022, Jason Mulligan\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of filesize nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/filesize/-/filesize-8.0.7.tgz#695e70d80f4e47012c132d57a059e80c6b580bd8",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/filesize/-/filesize-8.0.7.tgz",
    "hash": "695e70d80f4e47012c132d57a059e80c6b580bd8",
    "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==",
    "registry": "npm",
    "packageName": "filesize",
    "cacheIntegrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ== sha1-aV5w2A9ORwEsEy1XoFnoDGtYC9g="
  },
  "registry": "npm",
  "hash": "695e70d80f4e47012c132d57a059e80c6b580bd8"
}