# head

> file head sync and async

Latest version **1.0.0** (published 2013-08-21) · 0 weekly downloads

## Install

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

## 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 | 1.0.0 |
| Published | 2013-08-21 |
| First published | 2013-08-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | TJ Holowaychuk |
| Maintainers | tjholowaychuk |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2013-08-21

## README

# head

  File head -n

## Installation

    $ npm install visionmedia/node-head

## Example

```js
var head = require('head');

console.dir(head('Readme.md').toString());
console.dir(head('Readme.md', 100).toString());
console.dir(head('Readme.md', 50).toString());
console.dir(head('Readme.md', 20).toString());
console.dir(head('Readme.md', 10).toString());
console.dir(head('Readme.md', 4).toString());

head('Readme.md', 10, function(err, buf){
  if (err) throw err;
  console.dir(buf.toString());
});
```

## License

  MIT

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