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

https://github.com/tylim88/npm-util

server providing utility service for npm package
https://github.com/tylim88/npm-util

badges naming npm-package

Last synced: about 2 months ago
JSON representation

server providing utility service for npm package

Awesome Lists containing this project

README

        

# npm-util

[![GitHub](https://img.shields.io/github/license/tylim88/npm-util?color=blue)](https://github.com/tylim88/npm-util/blob/main/LICENSE) [![circleci](https://circleci.com/gh/tylim88/npm-util.svg?style=shield)](https://app.circleci.com/pipelines/github/tylim88/npm-util) [![codecov](https://codecov.io/gh/tylim88/npm-util/branch/main/graph/badge.svg?token=ydKwaMs7Yl)](https://codecov.io/gh/tylim88/npm-util)

backend of [npm utility](https://github.com/tylim88/npm-util-front-end).

## api

GET `https://api.npmutil.com/package//`

return `{ dependencies:{ count: } }`

POST `https://api.npmutil.com/package/availableNames`

payload :

```json
{
"filters":""[][]
}
```

filter type

```
- eg "a-z"
- eg "0-9"
eg "k"
eg "6"
"-"
"."
"_"
"vowels"
"consonants"
"*" <--- all characters

```

example:

```json
{
"filters": [["a-z"], ["a-z"], ["a-z"]]
}
```

```json
{
"filters": [
["a-c", "1"],
["1-3", "k"],
["vowels", "."]
]
}
```