{"id":17445988,"url":"https://github.com/jamen/pull-bundle-js","last_synced_at":"2025-09-25T01:30:59.944Z","repository":{"id":57332008,"uuid":"90611969","full_name":"jamen/pull-bundle-js","owner":"jamen","description":"Bundle JS files inside pull-stream","archived":false,"fork":false,"pushed_at":"2017-08-07T23:26:43.000Z","size":28,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-29T11:42:29.415Z","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/jamen.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":"2017-05-08T09:44:46.000Z","updated_at":"2023-02-19T08:56:37.000Z","dependencies_parsed_at":"2022-09-02T16:12:08.433Z","dependency_job_id":null,"html_url":"https://github.com/jamen/pull-bundle-js","commit_stats":null,"previous_names":["jamen/pull-bundle"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-bundle-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-bundle-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-bundle-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-bundle-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/pull-bundle-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234143356,"owners_count":18786140,"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-17T18:19:44.795Z","updated_at":"2025-09-25T01:30:59.618Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# pull-bundle-js\n\n\u003e Bundle JS files inside pull-stream with Browserify\n\nBundles the [js pull-stream files](https://github.com/jamen/pull-files) using [Browserify](https://github.com/substack/node-browserify)\n\n```js\nvar pull = require('pull-stream')\nvar { read, write } = require('pull-files')\nvar bundle = require('pull-bundle-js')\n\npull(\n  read([ 'index.js', 'lib/**/*.js' ], { cwd: __dirname }),\n  bundle('app.js', ['babelify', 'es2040']),\n  write('out', err =\u003e {\n    // finished\n  })\n)\n```\n\n## Install\n\n```sh\nnpm i pull-bundle-js\n```\n\n## Usage\n\n### `bundle(path?, options?)`\n\nBundles commonjs files using [Browserify](https://github.com/substack/node-browserify) to use commonjs modules and several Node.js built-ins on the browser\n\nThe `options` are passed to [`browserify(options)`](https://www.npmjs.com/package/browserify#browserifyfiles--opts), in addition to:\n\n - `path`: Path of the resulting bundle.  Optional if the path will never be used (e.g. goes into HTML directly after)\n - `strict`: Only allow files with `.js` to pass through.  Defaults to `false`\n\nYou can also pass `options` as an array as a shorthand for `transforms: [ ...options ]`\n\n## Also see\n\n - [`pull-files`](https://npmjs.com/pull-files) for reading and writing files\n - [`pull-bundle-html`](https://github.com/jamen/pull-bundle-html) put your JS and CSS into a boilerplate HTML file\n - [`pull-minify-js`](https://github.com/jamen/pull-minify-js) to minify it\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpull-bundle-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fpull-bundle-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpull-bundle-js/lists"}