# eth-debug-lines

> Injects Solidity source code with DebugLine events to allow per-line error reporting.

Latest version **0.1.0** (published 2016-11-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install eth-debug-lines
pnpm add eth-debug-lines
yarn add eth-debug-lines
bun add eth-debug-lines
```

Provides the command `eth-debug-lines`.

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-11-28 |
| First published | 2016-11-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.12.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Raine Revere |
| Maintainers | raine |
| Keywords | ethereum, solidity, contract, interface |

## Links

- npm: https://www.npmjs.com/package/eth-debug-lines
- Repository: https://github.com/raineorshine/eth-debug-lines
- Homepage: https://github.com/raineorshine/eth-debug-lines#readme
- Issues: https://github.com/raineorshine/eth-debug-lines/issues
- npm.io page: https://npm.io/package/eth-debug-lines

## Dependencies (3)

- [yargs](https://npm.io/package/yargs.md) ^6.4.0
- [solidity-parser](https://npm.io/package/solidity-parser.md) git://github.com/raineorshine/solidity-parser.git#326da052567245c9d9a0ba941bd9923aa89cda84
- [get-stdin-promise](https://npm.io/package/get-stdin-promise.md) ^0.1.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-11-28

## README

# eth-debug-lines
[![npm version](https://img.shields.io/npm/v/eth-debug-lines.svg)](https://npmjs.org/package/eth-debug-lines)

Injects Solidity source code with DebugLine events to allow per-line error reporting.

## Install

```sh
$ npm install --save eth-debug-lines
```

## CLI Usage

```js
$ eth-debug-lines < MyContract.sol
```

## API Usage

```js
const injectDebugLines = require('eth-debug-lines')

const src = `contract MyContract {
  function foo() {
    uint a;
    uint b;
    uint c;
  }
}`

console.log(injectDebugLines(src))

/* Output:

contract MyContract {

  // INJECTED
  event DebugLine(uint line);

  function foo() {
DebugLine(3);
    uint a;
DebugLine(4);
    uint b;
DebugLine(5);
    uint c;
  }
}
*/

```

## Issues

Before reporting, please makes sure your source is parseable via [solidity-parser](https://github.com/ConsenSys/solidity-parser).

<!--### Known Issues

-->

## License

ISC © [Raine Revere](https://github.com/raineorshine)

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