{"id":17419829,"url":"https://github.com/bendrucker/browserify-size","last_synced_at":"2025-07-21T04:31:54.061Z","repository":{"id":34708532,"uuid":"38684871","full_name":"bendrucker/browserify-size","owner":"bendrucker","description":"Get the browserified size of a module after minification and gzipping","archived":false,"fork":false,"pushed_at":"2020-05-25T04:10:22.000Z","size":29,"stargazers_count":17,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-19T00:46:28.161Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bendrucker.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-07T12:01:24.000Z","updated_at":"2022-01-29T05:57:12.000Z","dependencies_parsed_at":"2022-09-01T04:20:31.985Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/browserify-size","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fbrowserify-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fbrowserify-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fbrowserify-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fbrowserify-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/browserify-size/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226867826,"owners_count":17694818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-17T02:34:04.631Z","updated_at":"2024-11-28T06:16:51.816Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# browserify-size [![Build Status](https://travis-ci.org/bendrucker/browserify-size.svg?branch=master)](https://travis-ci.org/bendrucker/browserify-size) [![Greenkeeper badge](https://badges.greenkeeper.io/bendrucker/browserify-size.svg)](https://greenkeeper.io/)\n\n\u003e Get the browserified size of a module after minification and gzipping\n\n\n## Install\n\n```\n$ npm install --save browserify-size\n```\n\nFor the CLI:\n\n```\n$ npm install --global browserify-size\n```\n\n\n## Usage\n\nAPI\n\n```js\nvar browserifySize = require('browserify-size')\n\nbrowserifySize('xtend', callback)\n//=\u003e callback(null, 366)\n```\n\nCLI\n\n```sh\n# arg\n$ browserify-size xtend\n# stdin\n$ echo xtend | browserify-size\n#=\u003e 366 B\n```\n\n## API\n\n#### `browserifySize(name, [options], callback)` -\u003e `undefined`\n\n##### name\n\n*Required*  \nType: `string`\n\nThe package name or a path to a local package.\n\n##### options\n\n###### version\n\nType: `string`  \nDefault: `''`\n\nThe package version to use. Only applies when downloading from npm.\n\n###### cwd\n\nType: `string`  \nDefault: `process.cwd()`\n\n##### callback\n\n*Required*  \nType: `function`  \nArguments: `err, bytes`\n\nA callback to be called with the number of bytes in the resulting bundle after minification and gzipping.\n\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fbrowserify-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Fbrowserify-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fbrowserify-size/lists"}