# nodebowl-1 **Repository Path**: postbird/nodebowl-1 ## Basic Information - **Project Name**: nodebowl-1 - **Description**: A in-browser lib that emulates the Node.js API includes fs, require, etc. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-02 - **Last Updated**: 2026-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## nodebowl ![nodebowl](https://user-images.githubusercontent.com/44191223/68775140-0301be00-0669-11ea-9728-339567f1347b.png) Put node in a bowl. `nodebowl` is a in-browser lib that emulates the Node.js API includes fs, require, etc. It can run many Node.js lib in browser,eg: webpack in browser. > This project just started,please consider starring the project to show your ❤️ and support if you like it. ## Getting Started ``` $ npm install nodebowl ``` ```html ``` or import it ```js import nodebowl from 'nodebowl'; const { fs, run } = window.nodebowl; ``` ### API #### run(file[, args][, options]) - `file` \ The name or path of the executable file to run. - `args` \ List of string arguments. - `options` \ - `cwd` \ Current working directory.Default: `/` - `env` \ Environment key-value pairs. ```js run('index.js'); // node index.js run('index.js', { env: { NODE_ENV: 'dev' } }); // NODE_ENV=dev node ./index.js run('./dir/index.js', ['--v']); // node ./dir/index.js --v ``` #### helpers.installFromZip(url) - url \ The zip url. When you need to download the zip file like node_modules, you can use this helper method. #### Other API Other API emulates Node.js API, includes: fs, path, etc... Alternatively, you can use the require method just as you are using Node.js. ### Examples - simple examples/simple - webpack examples/webpack ### Dev ``` $ yarn $ yarn dev $ open http://localhost:8080/examples/simple/index.html ``` ### Contributors Welcom issue and pr, more details will be explained later.