mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-13 22:48:31 -05:00
6 lines
162 B
TypeScript
6 lines
162 B
TypeScript
|
import got from 'got';
|
||
|
|
||
|
export function callRegistry(url: string): Promise<string> {
|
||
|
return got.get(url, { headers: { Accept: 'application/json' } }).json();
|
||
|
}
|