# @leax/cli-shared-utils

> cli-shared-utils of leax

Latest version **2.2.0** (published 2022-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @leax/cli-shared-utils
pnpm add @leax/cli-shared-utils
yarn add @leax/cli-shared-utils
bun add @leax/cli-shared-utils
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2022-08-18 |
| First published | 2022-07-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 29.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ruichao |
| Maintainers | ruichao |
| Keywords | utils, @leax, @leax/cli-shared-utils |

## Links

- npm: https://www.npmjs.com/package/@leax/cli-shared-utils
- Repository: https://github.com/yangruichao/leax
- Homepage: https://github.com/yangruichao/leax#readme
- Issues: https://github.com/yangruichao/leax/issues
- npm.io page: https://npm.io/package/@leax/cli-shared-utils

## Dependencies (8)

- [npm](https://npm.io/package/npm.md) ^8.17.0
- [ora](https://npm.io/package/ora.md) 5.4.1
- [chalk](https://npm.io/package/chalk.md) 4.1.0
- [semver](https://npm.io/package/semver.md) ^7.3.7
- [install](https://npm.io/package/install.md) ^0.13.0
- [read-pkg](https://npm.io/package/read-pkg.md) 5.2.0
- [lru-cache](https://npm.io/package/lru-cache.md) ^7.13.1
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.7

## Recent versions

- 2.2.0 (latest) — 2022-08-18
- 2.1.3 — 2022-08-17
- 2.1.2 — 2022-08-16
- 2.1.1 — 2022-08-16
- 2.1.0 — 2022-08-15
- 2.0.1 — 2022-08-15
- 2.0.0 — 2022-08-14
- 1.1.0 — 2022-08-11
- 1.0.3 — 2022-07-27
- 1.0.2 — 2022-07-22
- 1.0.1 — 2022-07-20

## README

## Used

```html
  npm install @leax/cli-shared-cli
  // or
  yarn add @leax/cli-shared-cli
  // or
  pnpm install @leax/cli-shared-cli

  export declare const hasGit: () => boolean
  export declare const hasProjectGit: (cwd: string) => any
  export declare const hasYarn: () => boolean
  export declare const hasProjectYarn: (cwd: string) => boolean
  export declare const hasProjectNpm: (cwd: string) => any

  export declare const resolveModule: (request: string, context: string) => any
  export declare const loadModule: (request: string, context: string, force?: boolean) => any
  export declare const clearModule: (request: string, context: string) => void
  export declare const clearRequireCache: (id: string, map?: Map<any, any>) => void

  export declare const log: (text: string) => void
  export declare const done: (text: string) => void
  export declare const warn: (text: string) => void
  export declare const error: (text: string) => void
  export declare const clearConsole: (title?: string) => void

  export declare const logWithSpinner: (symbol: string, msg?: string) => void
  export declare const stopSpinner: (persist?: boolean) => void

  export declare const isPlugin: (id: string) => boolean
  export declare const matchPluginId: (id: string, pid: string) => boolean

  export declare const resolvePkg: (context: string) => any

  export declare const request: {
    get(url: string, opts: any): any
  }

  export { default as chalk } from 'chalk'
  export { default as ora } from 'ora'
  export { default as LRU } from 'lru-cache'
```

---
_Source: https://npm.io/package/@leax/cli-shared-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
