# svn-log-parser

> Parses SVN logs as into relevant JSON.

Latest version **0.2.0** (published 2012-07-23) · 0 weekly downloads

## Install

```sh
npm install svn-log-parser
pnpm add svn-log-parser
yarn add svn-log-parser
bun add svn-log-parser
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2012-07-23 |
| First published | 2012-06-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.6.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Jacob Swartwood |
| Maintainers | jswartwood |
| Keywords | svn, parse, stream, json, xml |

## Links

- npm: https://www.npmjs.com/package/svn-log-parser
- Repository: http://github.com/aeo/svn-log-parser
- Issues: http://github.com/aeo/svn-log-parser/issues
- npm.io page: https://npm.io/package/svn-log-parser

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.2.0 (latest) — 2012-07-23
- 0.1.0 — 2012-06-21

## README

SVN Log Parser (for Node.js)
============================

The SVN Log Parser module will parse SVN logs as into relevant JSON.


Install as dependency
---------------------

Install the module:

    npm install svn-log-parser

...or...

Add to your `package.json` file:

    {
      "name":        "my-app",
      // ...
      "dependencies": {
        // ...
        "svn-log-parser": "*"
      }
    }


Parsing SVN Logs as a String
----------------------------

Create a new parser and pass it a callback function and a string of SVN logs:

    var parser = require("svn-log-parser");

    parser(function( results ) {
      console.log("files", results.files);
      console.log("revs", results.revs);
    }, svnLogOutput);


Stream all the Things
---------------------

The parser has a streaming interface to allow pipes in and out. The stream will
also emit events as it parses _actions_ and _revisions_.

    var parser = require("svn-log-parser");

    var cleaner = parser();

    cleaner.on("action", function( action ) {
      console.log("action");
    });

    cleaner.on("rev", function( rev ) {
      console.log("rev");
    });

    cleaner.on("end", function( results ) {
      console.log("end");
    });

    process.stdin.pipe(cleaner);
    process.stdin.resume();


License
-------

    * Copyright (c) 2012 Jacob Swartwood
    * Licensed under the MIT license
    * http://jacob.swartwood.info/license/

---
_Source: https://npm.io/package/svn-log-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
