sigilworks·2 yıl önce·discussYou have been able to do that for a few years now, e.g.: `npm i https://github.com/user_name/node_project_name`...or with `npm i git+ssh:...`, and npm will git clone it locally, as long as it has a `package.json`You can install a certain commit, or even from a Gist!
sigilworks·12 yıl önce·discussI think there are some errors in the final solution code, as it doesn't do what you describe.Were you aiming at something like this?var generated = function(value) { return new Function( "return (" + function(valueToSwap) { return { prop: valueToSwap }; } + ")(" + value + ");" ); };
...or with `npm i git+ssh:...`, and npm will git clone it locally, as long as it has a `package.json`
You can install a certain commit, or even from a Gist!