An open API service indexing awesome lists of open source software.

https://github.com/lefuturiste/npm-api

Search or get a npm package
https://github.com/lefuturiste/npm-api

api data npm php

Last synced: about 1 month ago
JSON representation

Search or get a npm package

Awesome Lists containing this project

README

          

# npm-api

Search or get a npm package

## Quick installation

- Clone this repository
- Do a `composer install` to install dependencies
- Create a .env file and add environments variables from .env.example file
- Point your favorite web server (nginx is better) to `index.php` in `public` directory for nginx you can use `nginx-example.conf` file
- And done!

## Usage

Return json result, and support cors headers

GET /search?query=mypackage : Search for a package

GET /package/mypackage : Get informations about a package

## Live demo

Endpoint at: `https://npm-api.lefuturiste.fr`