Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/davidparsson/apply-patch

An npm package for applying patch files
https://github.com/davidparsson/apply-patch

Last synced: 24 days ago
JSON representation

An npm package for applying patch files

Awesome Lists containing this project

README

        

apply-patch
===========

A npm package for applying patches to files, based on [diff](https://www.npmjs.com/package/diff).

Usage
-----

`apply-patch` can be used from node.js as a regular package:

```JavaScript
var applyPatch = require("apply-patch").applyPatch;
applyPatch("path/to/file.patch");
```

`apply-patch` can also be used as a comand line tool:

```
npm install -g apply-patch
apply-patch path/to/file.patch
```

License
-------
[MIT](LICENSE)