This commit is contained in:
2024-03-22 03:47:51 +05:30
parent 8bcf3d211e
commit 89819f6fe2
28440 changed files with 3211033 additions and 2 deletions

26
node_modules/latest-version/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,26 @@
export interface Options {
/**
A semver range or [dist-tag](https://docs.npmjs.com/cli/dist-tag).
*/
readonly version?: string;
}
/**
Get the latest version of an npm package.
@example
```
import latestVersion from 'latest-version';
console.log(await latestVersion('ava'));
//=> '0.18.0'
console.log(await latestVersion('@sindresorhus/df'));
//=> '1.0.1'
// Also works with semver ranges and dist-tags
console.log(await latestVersion('npm', {version: 'latest-5'}));
//=> '5.5.1'
```
*/
export default function latestVersion(packageName: string, options?: Options): Promise<string>;