0.0.15 • Published 3 years ago

@peanutfe/cli-shared-utils v0.0.15

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

USAGE

yarn add @peanutfe/cli-shared-utils

import { log } from '@peanutfe/cl-shared-utils';
log.error('blabla');

interface

export declare const rmrf: (path: string) => void;
interface ILog {
    error: (...arg: any) => void;
    success: (...arg: any) => void;
    info: (...arg: any) => void;
    waning: (...arg: any) => void;
}
export declare const log: ILog;
export declare const clearConsole: () => boolean;
export declare const getLocalIP: () => string[];
export declare function getGlobalConfig(): IProjectConfig;
export declare const requirePkg: (pkgPath: string, defaultValue: any) => any;
export declare const getPageConfig: (pageDir: string) => IPageConfig;
export declare const getHash: (text: string, len?: number) => string;
export declare const is: {
    fun: (a: any) => boolean;
    obj: (a: any) => boolean;
    arr: (a: any) => boolean;
};