{"id":19316231,"url":"https://github.com/userfrosting/browserify-dependencies","last_synced_at":"2025-04-22T16:33:22.354Z","repository":{"id":33973309,"uuid":"163266490","full_name":"userfrosting/browserify-dependencies","owner":"userfrosting","description":"Runs browserify against dependencies (node_modules) to bring fresh JS libraries to your existing projects with minimal buy-in.","archived":false,"fork":false,"pushed_at":"2024-04-08T10:38:12.000Z","size":3872,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-08T11:31:16.117Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/userfrosting.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"open_collective":"userfrosting"}},"created_at":"2018-12-27T08:08:30.000Z","updated_at":"2024-04-15T12:25:43.458Z","dependencies_parsed_at":"2023-02-12T22:15:51.491Z","dependency_job_id":"7edbd61f-3eee-4d54-b23e-46e045654620","html_url":"https://github.com/userfrosting/browserify-dependencies","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userfrosting%2Fbrowserify-dependencies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userfrosting%2Fbrowserify-dependencies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userfrosting%2Fbrowserify-dependencies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userfrosting%2Fbrowserify-dependencies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/userfrosting","download_url":"https://codeload.github.com/userfrosting/browserify-dependencies/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223900212,"owners_count":17222028,"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-11-10T01:10:33.277Z","updated_at":"2024-11-10T01:10:33.791Z","avatar_url":"https://github.com/userfrosting.png","language":"TypeScript","funding_links":["https://opencollective.com/userfrosting"],"categories":[],"sub_categories":[],"readme":"# browserify-dependencies\n\n| Branch | Status |\n| ------ | ------ |\n| master | [![Continuous Integration](https://github.com/userfrosting/browserify-dependencies/workflows/Continuous%20Integration/badge.svg?branch=master)](https://github.com/userfrosting/browserify-dependencies/actions) [![codecov](https://codecov.io/gh/userfrosting/browserify-dependencies/branch/master/graph/badge.svg)](https://codecov.io/gh/userfrosting/browserify-dependencies/branch/master) |\n\n\nRuns browserify against compatible dependencies in `node_modules` or whichever other folder you specify, outputting the results as UMD bundles in a specified location. Makes no attempt to patch node internals, Browserify options may however be provided for this purpose.\n\n## Install\n\n```bash\nnpm i -D @userfrosting/browserify-dependencies\n```\n\n## Usage\n\n\u003e **IMPORTANT**\u003cbr/\u003e\n\u003e This is an ES module package targeting NodeJS `\u003e=14.0.0`, refer to the [NodeJS ESM docs](https://nodejs.org/api/esm.html) regarding how to correctly import.\n\u003e ESM loaders like `@babel/loader` or `esm` likely won't work as expected.\n\n```js\nimport { browserifyDependencies } from \"@userfrosting/browserify-dependencies\";\n\nconst options = {\n    dependencies: [\n        \"foo\",\n        \"bar\"\n    ],\n    inputDir: \"./node_modules\",\n    outputDir: \"./browser_modules\"\n};\n\nbrowserifyDependencies(options)\n    .then(() =\u003e console.log(\"Done! ✨\"))\n    .catch(() =\u003e console.log(\"Things have not gone according to plan... 🔥\"));\n```\n\nProcess modules are wrapped with UMD to allow consumption by most environments, exports in the browser are available via `window.[normalized-package-name]`.\n\n## API\n\nAPI documentation is regenerated for every release using [API Extractor](https://www.npmjs.com/package/@microsoft/api-extractor) and [API Documenter](https://www.npmjs.com/package/@microsoft/api-documenter).\nThe results reside in [docs/api](./docs/api/index.md).\n\n## Release process\n\nGenerally speaking, all releases should first traverse through `alpha`, `beta`, and `rc` (release candidate) to catch missed bugs and gather feedback as appropriate. Aside from this however, there are a few steps that **MUST** always be done.\n\n1. Make sure [`CHANGELOG.md`](./CHANGELOG.md) is up to date.\n2. Update version via `npm` like `npm version 3.0.0` or `npm version patch`.\n3. `npm publish`.\n4. Create release on GitHub from tag made by `npm version`.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserfrosting%2Fbrowserify-dependencies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuserfrosting%2Fbrowserify-dependencies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserfrosting%2Fbrowserify-dependencies/lists"}