# learn-browserify **Repository Path**: mirrors_dwyl/learn-browserify ## Basic Information - **Project Name**: learn-browserify - **Description**: Learn to package your Node.js modules & apps for use in browsers! - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-01-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Learn Browserify ![Browserify Header](http://i.imgur.com/G7Ffa6q.png) Browserify lets you require('modules') in the browser by bundling up all of your dependencies. ## Read + Website: http://browserify.org + Handbook: https://github.com/substack/browserify-handbook ## Basic Example ```sh atom main.js ``` ```js var unique = require('uniq'); var data = [1, 2, 2, 3, 4, 5, 5, 5, 6]; console.log(unique(data)); ``` ```sh browserify main.js -o bundle.js ``` Now open open **index.html** in your browser and open the **developer console**. You should expect to see: ![hello browserify](http://i.imgur.com/eMuMxru.png) ## Further Reading - Use Watchify to automatically re-bundle your app when changes are made: https://www.npmjs.com/package/watchify - Use Browserify to bundle a React.js App for use on both Server *and* Browser: https://github.com/mhart/react-server-example