-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
31 lines (31 loc) · 959 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
export { meta as default };
/**
* @module @thebespokepixel/meta
* @private
*/
/**
* Creates the metadata collection function, starting at the path provided or
* the current working directory by default.
* @function meta
* @param {string} cwd The directory to start searching for a package.json file.
* @return {metadata} The map of reduced package metadata.
*/
declare function meta(cwd?: string): {
readonly name: string;
readonly description: string;
readonly copyright: any;
readonly license: string;
readonly bugs: string;
readonly bin: string;
/**
* Print a package version string.
* @param {number} style The version string format wanted:
* ```
* 1: Simple number format: 0.1.2
* 2: Long version with name: @thebespokepixel/meta v0.1.2
* 3: v-prefixed version number: v0.1.2
* ```
* @return {string} The version string.
*/
version: (style?: number) => string;
};