1.0.16 • Published 7 years ago

node-builtin-map v1.0.16

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

node-builtin-map

Explicitly requires all built-in node modules and puts into a single object.

You may think this is a very pointless module, and given the abundance of pointless modules on npm, I wouldn't blame you for thinking it. However, there is once very specific thing you can do with this module that requires the module to be in npm (otherwise, I would not have published it).

WZRD.IN

wzrd.in is a CDN that bundles node modules with browserify, for use in a normal web browser. This module requires the built-in node modules and provides them in a single object, meaning you can include the bundled version of this module in the browser and have access to the full node.js standard library.

Example

<!DOCTYPE html>
<html>
	<head>
		<script type="application/javascript" src="https://wzrd.in/bundle/node-builtin-map"></script>
		<script type="application/javascript">
			// This module includes a "require" function so that you can use the built-in modules just as if you were in nodejs
			require = require('node-builtin-map').require;
		</script>
		<script type="application/javascript">
			const os = require('os');
			console.log(os.platform()); // prints "browser"
		</script>
	</head>
	<body>
	</body>
</html>
1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago