https://github.com/semoal/npm-package-info
Fetches the package information from a npm package written 100% in Elixir
https://github.com/semoal/npm-package-info
dependencies elixir erlang npm private-package
Last synced: 11 months ago
JSON representation
Fetches the package information from a npm package written 100% in Elixir
- Host: GitHub
- URL: https://github.com/semoal/npm-package-info
- Owner: semoal
- License: mit
- Created: 2019-12-14T19:24:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:36:52.000Z (over 2 years ago)
- Last Synced: 2025-06-04T01:16:53.843Z (about 1 year ago)
- Topics: dependencies, elixir, erlang, npm, private-package
- Language: Elixir
- Homepage: https://hexdocs.pm/npm_package_info
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# NpmPackageInfo
Fetches the package information from a npm package.
> Highly inspired in https://github.com/jesseditson/npm-package written in JavaScript.
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `npm_package_info` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:npm_package_info, "~> 0.1.0"}
]
end
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/npm_package_info](https://hexdocs.pm/npm_package_info).
## Try tests
There's a private registry test, so you must change the test for local development to point your private registry.
For ej:
```sh
export TEST_NPM_TOKEN=7512f9e6-80
mix test --trace
```