@sizium/core
Version:
Get the actual size of any local or remote package
20 lines (17 loc) • 519 B
text/typescript
import { c as PackageSuper, S as SiziumResponse } from '../shared/core.Cm22qaRF.mjs';
import '@schemastore/package';
/**
* Represents the class to get the `true` package size from the npm registry URL.
*
* @example
* const size = new SiziumRegistry( 'chalk' )
* const data = await size.get()
*
* console.log(data) // all data
* console.log(data.size) // total size on bytes
*/
declare class SiziumRegistry extends PackageSuper {
#private;
get(): Promise<SiziumResponse>;
}
export { SiziumRegistry };