victorb / trymodule

➰ It's never been easier to try nodejs modules!
1.14k stars 29 forks source link

Be able to set a specific variable name #17

Closed victorb closed 8 years ago

victorb commented 8 years ago

Maybe someone is used to calling lodash as _ in their code, we should allow them to specify this when starting trymodule.

Example

# trymodule lodash@1.6.1=_ underscore@1.2.0=underscorejs
Package 'lodash' was loaded and assigned to '_' in the current scope
Package 'underscorejs' was loaded and assigned to 'underscorejs' in the current scope

This was first brought up in https://github.com/VictorBjelkholm/trymodule/issues/13

victorb commented 8 years ago

Merged, not yet released.

victorb commented 8 years ago

Published as 1.4.0