Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/michaelnisi/showf

Show changed files in latest commit
https://github.com/michaelnisi/showf

Last synced: about 1 month ago
JSON representation

Show changed files in latest commit

Awesome Lists containing this project

README

        

# showf - show files in commit

The showf [Node.js](http://nodejs.org/) module shows filenames of changed files in the latest commit to a local git repository.

[![Build Status](https://secure.travis-ci.org/michaelnisi/showf.png)](http://travis-ci.org/michaelnisi/showf) [![David DM](https://david-dm.org/michaelnisi/showf.png)](http://david-dm.org/michaelnisi/showf)

## Usage

```js
var showf = require('showf')
, cop = require('cop')

showf(process.cwd())
.pipe(cop(function (s) { return s + '\n' }))
.pipe(process.stdout)
```
## API

### showf(dir)

- `dir` Path to local git repository

The `showf` module exports a single function that returns a [Transform](http://nodejs.org/api/stream.html#stream_class_stream_transform) stream. The output of the stream are filenames of changed files in the latest commit.

## Installation

[![NPM](https://nodei.co/npm/showf.png)](https://npmjs.org/package/showf)

## License

[MIT License](https://raw.github.com/michaelnisi/showf/master/LICENSE)