{"id":16721068,"url":"https://github.com/khalyomede/fang-browserify","last_synced_at":"2025-03-15T12:23:12.705Z","repository":{"id":57124631,"uuid":"178488353","full_name":"khalyomede/fang-browserify","owner":"khalyomede","description":"Fang plugin to use browserify.","archived":false,"fork":false,"pushed_at":"2019-03-30T11:57:06.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T03:47:37.616Z","etag":null,"topics":["browser","browserify","bundler","fang","plugin","task-runner"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@khalyomede/fang-browserify","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/khalyomede.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":"2019-03-29T23:35:33.000Z","updated_at":"2019-03-30T11:57:08.000Z","dependencies_parsed_at":"2022-08-31T17:01:15.232Z","dependency_job_id":null,"html_url":"https://github.com/khalyomede/fang-browserify","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalyomede%2Ffang-browserify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalyomede%2Ffang-browserify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalyomede%2Ffang-browserify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalyomede%2Ffang-browserify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khalyomede","download_url":"https://codeload.github.com/khalyomede/fang-browserify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681047,"owners_count":20330155,"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":["browser","browserify","bundler","fang","plugin","task-runner"],"created_at":"2024-10-12T22:28:36.083Z","updated_at":"2025-03-15T12:23:12.659Z","avatar_url":"https://github.com/khalyomede.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fang Browserify\n\n[Fang](https://www.npmjs.com/package/@khalyomede/fang) plugin to use browserify.\n\n![npm](https://img.shields.io/npm/v/@khalyomede/fang-browserify.svg) ![npm (prod) dependency version](https://img.shields.io/npm/dependency-version/@khalyomede/fang-browserify/browserify.svg) ![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/@khalyomede/fang-browserify.svg) ![NPM](https://img.shields.io/npm/l/@khalyomede/fang-browserify.svg) \n\n## Summary\n\n- [Installation](#installation)\n- [Usage](#usage)\n\n## Installation\n\n1. Install [fang](https://www.npmjs.com/package/@khalyomede/fang)\n\n```bash\nnpm install --save-dev @khalyomede/fang@0.*\n```\n\n2. Install this package\n\n```bash\nnpm install --save-dev @khalyomede/fang-browserify@0.*\n```\n\n3. Create a script alias\n\n```javascript\n// package.json\n{\n  \"scripts\": {\n    \"fang\": \"fang\"\n  }\n}\n```\n\n4. Create a task file (at the root of your folder)\n\n```javascript\n// fang.js\nconst fang = require('@khalyomede/fang');\nconst browserify = require('@khalyomede/fang-browserify');\n\nconst js = () =\u003e fang.from('src/js/**/*.js')\n  .do(browserify())\n  .save('dist/js');\n\nconst build = [js];\n\nmodule.exports = { build };\n```\n\n## Usage\n\n- [Example 1: simple usage](#example-1-simple-usage)\n- [Example 2: with options](#example-2-with-options)\n\n### Example 1: simple usage\n\nIn this example, we will convert our modules imports into a browser-compatible javascript code.\n\n```javascript\n// fang.js\nconst fang = require('@khalyomede/fang');\nconst browserify = require('@khalyomede/fang-browserify');\n\nconst js = () =\u003e fang.from('src/js/**/*.js')\n  .do(browserify())\n  .save('dist/js');\n\nconst build = [js];\n\nmodule.exports = { build };\n```\n\n### Example 2: with options\n\nIn this example, we are using some of the options provided by browserify to customize the behavior of this module.\n\n```javascript\nconst fang = require('@khalyomede/fang');\nconst browserify = require('@khalyomede/fang-browserify');\n\nconst js = () =\u003e fang.from('src/js/**/*.js')\n  .do(browserify({\n    debug: true // add a soure map inlined at the end of the file\n  }))\n  .save('dist/js');\n\nconst build = [js];\n\nmodule.exports = { build };\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalyomede%2Ffang-browserify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhalyomede%2Ffang-browserify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalyomede%2Ffang-browserify/lists"}