Skip to content

semoal/npm-package-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, 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.

Try tests

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