1.0.16 • Published 6 years ago

node-builtin-map v1.0.16

Weekly downloads
1
License
ISC
Repository
-
Last release
6 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

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago