# fake-install

> A utility module for simulating the installation of npm packages.

Latest version **1.0.0** (published 2023-09-14) · 0 weekly downloads

## Install

```sh
npm install fake-install
pnpm add fake-install
yarn add fake-install
bun add fake-install
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-09-14 |
| First published | 2023-09-14 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | baranwang |

## Links

- npm: https://www.npmjs.com/package/fake-install
- npm.io page: https://npm.io/package/fake-install

## Recent versions

- 1.0.0 (latest) — 2023-09-14

## README

# Fake Install

A utility module for simulating the installation of npm packages.

## Installation

You can install this package using npm:

```bash
npm install fake-install
```

## Usage

In your Node.js project, you can use this module to simulate the installation of an npm package. Here's how you can use it:

```javascript
const { fakeInstall } = require('fake-install');

const packageName = 'example-package'; // Replace with the name of the package you want to simulate the installation of
const targetPath = process.cwd(); // You can specify the target directory where the package should be installed

try {
  fakeInstall(packageName, targetPath);
  console.log(`Successfully simulated installation of '${packageName}'`);
} catch (error) {
  console.error(`Error: ${error.message}`);
}
```

This code will simulate the installation of the specified package in the target directory.

## API

### `fakeInstall(packageName: string, targetPath: string = process.cwd()): void`

- `packageName` (string): The name of the npm package you want to simulate the installation of.
- `targetPath` (string, optional): The target directory where the package should be installed. Defaults to the current working directory.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

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