How to install package from pull request?

Viewed 2460

I would like to install a package from npm ng2-table, but with a pull request that is not merged to master.
There is anyway to add this pull request on my package.jsonto install this commit instead master master on my application?

1 Answers

You can specify the GitHub URL to the branch or commit that the PR was made from. You should specify the commit hash instead of the branch so that you don't unexpectedly get other (potentially-malicious) changes published to that branch in the future.

For example:

"package": user/repo#commit

Documentation

Related