Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serapath/npm-require
synchronous global require function for the browser to load commonjs modules from a (relative) path, a URL or npm
https://github.com/serapath/npm-require
browser browser-cdn browserify browserify-cdn install npm require
Last synced: 3 days ago
JSON representation
synchronous global require function for the browser to load commonjs modules from a (relative) path, a URL or npm
- Host: GitHub
- URL: https://github.com/serapath/npm-require
- Owner: serapath
- License: mit
- Created: 2017-03-24T05:28:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T18:28:41.000Z (about 6 years ago)
- Last Synced: 2024-04-25T16:42:18.943Z (7 months ago)
- Topics: browser, browser-cdn, browserify, browserify-cdn, install, npm, require
- Language: JavaScript
- Homepage: https://serapath.github.io/npm-require
- Size: 12.7 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# npm-require
synchronous global require function for the browser to load commonjs modules from a (relative) path, a URL or npmhttps://www.npmjs.com/package/npm-require
# demo
```html
var minixhr = require('minixhr') // from npm
var pkg = require('./package.json')
var demo = require('./demo') // resolves to `./demo.js`
demo(pkg)
```
# license
MIT