Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tennashi/deno-diff-parser
https://github.com/tennashi/deno-diff-parser
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tennashi/deno-diff-parser
- Owner: tennashi
- License: mit
- Created: 2021-09-09T15:33:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-20T13:10:21.000Z (over 3 years ago)
- Last Synced: 2023-08-08T20:47:56.761Z (over 1 year ago)
- Language: TypeScript
- Size: 1.95 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# diff-parser
Parse unified diff format## Usage
```ts
import { parse } from "https://deno.land/x/diff_parser/mod.ts";const process = Deno.run({
cmd: ["git", "diff", "--no-color"]
stdout: "piped",
});const output = await process.output();
const diffText = new TextDecoder().decode(output);
process.close();parse(diffText);
```