# prepend

> Add data to the beginning of file

Latest version **2.0.0** (published 2026-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install prepend
pnpm add prepend
yarn add prepend
bun add prepend
```

## Health

**Score 50/100 (C)** — status: active.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-04-17 |
| First published | 2014-11-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 1 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | coderaiser |
| Maintainers | coderaiser |

## Links

- npm: https://www.npmjs.com/package/prepend
- Repository: https://github.com/coderaiser/node-prepend
- Homepage: http://github.com/coderaiser/prepend-io
- Issues: https://github.com/coderaiser/node-prepend/issues
- npm.io page: https://npm.io/package/prepend

## Dependencies (1)

- [try-to-catch](https://npm.io/package/try-to-catch.md) ^4.0.5

## Recent versions

- 2.0.0 (latest) — 2026-04-17
- 1.0.2 — 2014-11-28
- 1.0.1 — 2014-11-27
- 1.0.0 — 2014-11-27

## README

# Prepend

Add data to the beginning of file

## Install

```
npm i prepend --save
```

## How to use?

```js
import {prepend} from 'prepend';

await prepend('README.md', 'some data for beginning');
```

## License

MIT

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