Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/michaelnisi/showf
- Owner: michaelnisi
- License: mit
- Created: 2013-08-26T14:04:27.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-09T08:27:13.000Z (over 10 years ago)
- Last Synced: 2024-10-13T18:45:31.505Z (2 months ago)
- Language: JavaScript
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)