https://github.com/sandinmyjoints/head-fork
A fork of head that is compatible with newer versions of node.
https://github.com/sandinmyjoints/head-fork
Last synced: 3 months ago
JSON representation
A fork of head that is compatible with newer versions of node.
- Host: GitHub
- URL: https://github.com/sandinmyjoints/head-fork
- Owner: sandinmyjoints
- Created: 2021-06-26T01:03:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-26T01:03:26.000Z (almost 4 years ago)
- Last Synced: 2025-02-08T09:12:54.587Z (4 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
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