Fetches the package information from a npm package.
Highly inspired in https://github.com/jesseditson/npm-package written in JavaScript.
If available in Hex, the package can be installed
by adding npm_package_info
to your list of dependencies in mix.exs
:
def deps do
[
{:npm_package_info, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/npm_package_info.
There's a private registry test, so you must change the test for local development to point your private registry.
For ej:
export TEST_NPM_TOKEN=7512f9e6-80
mix test --trace