Newton's Principia Mathematica

    @vivo-minigame/cli-shared-utils

    1.4.7 • Public • Published

    @vivo-minigame/cli-shared-utils

    utils shared for all packages

    Usage

    import { chalk, semver } from '@vivo-minigame/cli-shared-utils'

    Utils

    • env.js

      import {   
          hasYarn,                //是否安装有Yarn
          hasProjectYarn,         //项目是否Yarn管理
          hasGit,                 //是否安装有Git
          hasProjectGit,          //项目是否Git管理
          hasPnpm3OrLater,        //是否安装Pnpm3+
          hasProjectPnpm,         //项目是否Pnpm3+管理
          isWindows,              //当前环境是否是windows
          isMacintosh,            //当前环境是否是mac
          isLinux                 //当前环境是否Linux
      } from '@vivo-minigame/cli-shared-utils'
    • logger.js

      import {   
          events,                //new EventEmitter() 实例
          log,                   //log
          info,                  //info
          done,                  //done
          warn,                  //warn
          error,                 //error
          clearConsole
      } from '@vivo-minigame/cli-shared-utils'
    • spinner.js

      import {   
          logWithSpinner,                //new logWithSpinner
          stopSpinner,                   //stopSpinner
          pauseSpinner,                  //pauseSpinner
          resumeSpinner,                 //resumeSpinner
          failSpinner
      } from '@vivo-minigame/cli-shared-utils'

    Install

    npm i @vivo-minigame/cli-shared-utils

    DownloadsWeekly Downloads

    47

    Version

    1.4.7

    License

    MIT

    Unpacked Size

    21.8 kB

    Total Files

    8

    Last publish

    Collaborators

    • _panwei
    • ygg
    • nsrjdsyt
    • morrain
    • jesseband