UNPKG

textlint

Version:

The pluggable linting tool for natural language.

18 lines • 667 B
type PackageJson = { version?: string; dependencies?: Record<string, string>; devDependencies?: Record<string, string>; optionalDependencies?: Record<string, string>; }; /** * Find the closest package.json from `cwd` toward the root directory and return its parsed content. * Return `undefined` if no package.json is found. * Throw an error if the found package.json cannot be parsed. */ export declare const readClosestPackageJson: (cwd: string) => PackageJson | undefined; /** * Return the version of textlint from its package.json */ export declare const getTextlintVersion: () => string; export {}; //# sourceMappingURL=package-json.d.ts.map