@peanutfe/cli-shared-utils
TypeScript icon, indicating that this package has built-in type declarations

0.0.15 • Public • Published

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;
};

Readme

Keywords

Package Sidebar

Install

npm i @peanutfe/cli-shared-utils

Weekly Downloads

8

Version

0.0.15

License

MIT

Unpacked Size

7.04 kB

Total Files

6

Last publish

Collaborators

  • xhonker
  • peanutfea