{"id":17445995,"url":"https://github.com/jamen/pull-browserify","last_synced_at":"2025-04-02T11:23:01.953Z","repository":{"id":57332006,"uuid":"79929144","full_name":"jamen/pull-browserify","owner":"jamen","description":"Browserify functions for pull stream","archived":false,"fork":false,"pushed_at":"2017-01-24T17:30:16.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T00:40:35.953Z","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-01-24T16:20:40.000Z","updated_at":"2021-12-19T15:41:36.000Z","dependencies_parsed_at":"2022-09-02T16:12:04.950Z","dependency_job_id":null,"html_url":"https://github.com/jamen/pull-browserify","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-browserify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-browserify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-browserify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-browserify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/pull-browserify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246803314,"owners_count":20836537,"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:53.674Z","updated_at":"2025-04-02T11:23:01.926Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":["https://paypal.me/jamenmarz/5usd"],"categories":[],"sub_categories":[],"readme":"# pull-browserify\n\n\u003e Browserify functions for pull stream\n\nThis simply wraps [`browserify`](https://npmjs.com/browserify) in pull-stream functions.\n\n```js\nvar pull = require('pull-stream')\nvar vinyl = require('pull-vinyl')\nvar b = require('pull-browserify')\n\npull(\n  b.source('some-file.js'),\n  b.add('another-file.js'),\n  b.transform('babelify', { ...opts }),\n  b.bundle(),\n  vinyl.map('index.js'),\n  vinyl.write('out')\n)\n```\n\n## Installation\n\n```sh\n$ npm install --save pull-browserify\n```\n\n## Usage\n\n### `browserify([files, opts])`\n### `browserify.source([files, opts])`\n\nCreates a browserify object in the pipeline, where you can use the functions (or `pull.through`) to manage it.\n\n### `browserify.{add, require, external, ignore, exclude, transform}`\n\nThese just wrap their [`browserify`](https://npmjs.com/browserify) counterparts in `pull.through`. You can read the docs there.\n\n```js\nvar settings = pull(\n  browserify.add('./some-shim.js')\n  browserify.transform('babelify', { ...opts }),\n  browserify.exclude('./other-file.js'),\n  // ...\n)\n\npull(\n  browserify('./app/index.js'),\n  settings,\n  browserify.bundle(),\n  // ...\n)\n```\n\n### `browserify.bundle()`\n\nMaps the stream to the bundled source buffer.  You can write it to the file system or do whatever.\n\n```js\npull(\n  // ... after sourcing and adding settings\n  browserify.bundle(),\n  vinyl.map('index.js'),\n  vinyl.write('out')\n)\n```\n\n## License\n\nMIT © [Jamen Marz](https://git.io/jamen)\n\n---\n\n[![version](https://img.shields.io/npm/v/pull-browserify.svg?style=flat-square)][package] [![travis](https://img.shields.io/travis/jamen/pull-browserify.svg?style=flat-square)](https://travis-ci.org/jamen/pull-browserify) [![downloads](https://img.shields.io/npm/dt/pull-browserify.svg?style=flat-square)][package] [![license](https://img.shields.io/npm/l/pull-browserify.svg?style=flat-square)][package] [![support me](https://img.shields.io/badge/support%20me-paypal-green.svg?style=flat-square)](https://paypal.me/jamenmarz/5usd) [![follow](https://img.shields.io/github/followers/jamen.svg?style=social\u0026label=Follow)](https://github.com/jamen)\n\n[package]: https://npmjs.org/package/pull-browserify\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpull-browserify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fpull-browserify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpull-browserify/lists"}