DefinitelyTyped/types/parse-package-name/index.d.ts
Eric Wang bf3b32a1da Add Type to parse-package-name (#37124)
* New: Add parse package name

* add test

* .

* .

* .

* .

* .

* .

* .

* .
2019-07-25 12:18:54 -07:00

15 lines
398 B
TypeScript

// Type definitions for parse-package-name 0.1
// Project: https://github.com/egoist/parse-package-name
// Definitions by: Eric Wang <https://github.com/fa93hws>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = parsePackageName;
interface PackageInfo {
name: string;
path: string;
version: string;
}
declare function parsePackageName(path: string): PackageInfo;