Closed chhib closed 10 years ago
You can require individual files from a npm module
On Sunday, August 31, 2014, David Andersson notifications@github.com wrote:
It would be great to be able to only require individual functions or packages. Today I can:
var mout = Meteor.npmRequire('mout');
Which is great. But even greater would be to only access what I want:
var map = Meteor.npmRequire('mout/array/map');
— Reply to this email directly or view it on GitHub https://github.com/meteorhacks/npm/issues/43.
Arunoda Susiripala I curate Meteor Weekly - Check it out! http://meteorhacks.com/meteor-weekly/?utm_source=email-footer&utm_medium=email&utm_campaign=meteorweekly
Thank you. This worked:
var map = Meteor.npmRequire('mout/array/map.js');
It would be great to be able to only require individual functions or packages. Today I can:
Which is great. But even greater would be to only access what I want: