import { PackageJson } from '../definitions'; export declare const ERROR_INVALID_PACKAGE_JSON = "INVALID_PACKAGE_JSON"; export declare const ERROR_BIN_NOT_FOUND = "BIN_NOT_FOUND"; /** * Lightweight version of https://github.com/npm/validate-npm-package-name */ export declare function isValidPackageName(name: string): boolean; export declare function readPackageJsonFile(p: string): Promise<PackageJson>; export declare function compileNodeModulesPaths(filePath: string): string[]; export interface ResolveOptions { paths?: string[]; } export declare function resolveBin(m: string, bin: string, options?: ResolveOptions): string;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
fn.d.ts | File | 200 B | 0644 |
|
fn.js | File | 591 B | 0644 |
|
ipc.d.ts | File | 1.67 KB | 0644 |
|
ipc.js | File | 5.2 KB | 0644 |
|
node.d.ts | File | 637 B | 0644 |
|
node.js | File | 1.7 KB | 0644 |
|
promise.d.ts | File | 1.22 KB | 0644 |
|
promise.js | File | 1.64 KB | 0644 |
|
string.d.ts | File | 677 B | 0644 |
|
string.js | File | 1.53 KB | 0644 |
|