# @lough/npm-operate

> lough npm operate.

Latest version **0.3.2** (published 2024-03-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lough/npm-operate
pnpm add @lough/npm-operate
yarn add @lough/npm-operate
bun add @lough/npm-operate
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2024-03-04 |
| First published | 2022-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14.17.0 |
| Dependencies | 1 |
| Unpacked size | 51.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lough |
| Maintainers | anciity |
| Keywords | npm, node, typescript |

## Links

- npm: https://www.npmjs.com/package/@lough/npm-operate
- Repository: https://github.com/lough-city/lough-npm
- Issues: https://github.com/lough-city/lough-npm/issues
- npm.io page: https://npm.io/package/@lough/npm-operate

## Dependencies (1)

- [execa](https://npm.io/package/execa.md) 5.1.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.3.2 (latest) — 2024-03-04
- 0.3.1 — 2023-04-16
- 0.3.0 — 2023-03-26
- 0.2.4 — 2023-03-23
- 0.2.2 — 2023-03-16
- 0.2.1 — 2023-03-14
- 0.2.0 — 2022-09-18
- 0.2.0-beta.0 — 2022-09-18
- 0.1.0-beta.8 — 2022-08-22
- 0.1.0-beta.6 — 2022-08-22
- 0.1.0-beta.5 — 2022-06-30
- 0.1.0-beta.4 — 2022-06-30
- 0.1.0-beta.3 — 2022-06-30
- 0.1.0-beta.2 — 2022-06-30
- 0.1.0-beta.1 — 2022-06-30
- … 5 more at https://npm.io/package/@lough/npm-operate/versions

## README

# @lough/npm-operate

> lough git operate.



## Usage

1. 安装

   ```bash
   npm i @lough/git-operate
   ```

2. 使用

   ```javascript
   import { Package } from "@lough/npm-operate"
   
   const npm = new Package();
   ```



## API

```typescript
/**
 * Package 类参数
 */
export interface IPackageParameters {
  /**
   * 目录名称
   * @default process.cwd()
   */
  dirName?: string;
  /**
   * 配置文件名称
   * @default 'package.json'
   */
  configFileName?: string;
  /**
   * 是否工作空间
   * @description 默认判断 `dirName` 下 `package.json` `workspaces` 属性
   */
  isWorkspaces?: boolean;
  /**
   * 工作空间目录
   * @default `dirName`
   */
  workspacesDir?: string;
  /**
   * 是否工作区
   * @default false
   */
  isWorkspace?: boolean;
  /**
   * 相对工作空间目录
   * @default ''
   */
  relativeWorkspacesDir?: string;
  /**
   * 是否 Lerna 项目
   * @description 默认判断 `dirName` 下 `lerna.json`
   */
  isLerna?: boolean;
  /**
   * 是否 Yarn
   * @description 默认判断 `dirName` 下 `yarn.lock`
   */
  isYarn?: boolean;
}
```

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