browserify-client

1.0.0 • Public • Published

browserify-client

A client that dynamically requires npm modules via an instance of browserify-server. Works in browsers and node.

var client = require('browserify-client').connect('http://localhost:4000');
 
client.require('underscore', function(err, _) {
 
  // _ is set to the latest version of underscore
 
});
 
client.require('underscore', '1.0.0', function(err, _) {
 
  // _ is set to v 1.0.0 of underscore
 
});
 
client.require({ underscore: '1.0.0', lodash: 'latest' }, function(err, r) {
 
  // r.underscore is set to v 1.0.0 of underscore
  // r.lodash is set to the latest version of lodash
 
});
 

license

MIT

Readme

Keywords

Package Sidebar

Install

npm i browserify-client

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • joshski