0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-13 22:48:31 -05:00
verdaccio/test/cli/cli-commons/src/web.ts
Juan Picado 1755840cd3
e2e cli npm 6 (#3282)
* chore: add config utility

* improve verdaccio bin location

* add new npm cli e2e tests

* add tests

* rename files
2022-08-02 22:45:16 +02:00

5 lines
162 B
TypeScript

import got from 'got';
export function callRegistry(url: string): Promise<string> {
return got.get(url, { headers: { Accept: 'application/json' } }).json();
}