# riline

> Riline.js =========

Latest version **0.1.1** (published 2014-08-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install riline
pnpm add riline
yarn add riline
bun add riline
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-08-12 |
| First published | 2014-08-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sergey Shishkalov |
| Maintainers | s0ber |

## Links

- npm: https://www.npmjs.com/package/riline
- Repository: https://github.com/s0ber/riline
- Issues: https://github.com/s0ber/riline/issues
- npm.io page: https://npm.io/package/riline

## Dependencies (2)

- [colors](https://npm.io/package/colors.md)
- [underscore](https://npm.io/package/underscore.md)

## Recent versions

- 0.1.1 (latest) — 2014-08-12
- 0.1.0 — 2014-08-12

## README

Riline.js
=========

Utility for logging lines of code from a text string (or file).

[![Build Status](https://travis-ci.org/s0ber/riline.png?branch=master)](https://travis-ci.org/s0ber/riline)


## Hot to use

Initialized riline object constructor gets text string as a parameter, then you can log parts of this text string in a console with some warning messages.

```coffee
Riline = require('../src/riline')
fs = require 'fs'

text = fs.readFileSync('./my_text_file.txt').toString()
riline = new Riline(text)

riline.addMessage
  type: 'warning'
  startLine: 10
  endLine: 15
  message: 'Somethin is wrong in this lines'

riline.addMessage
  type: 'warning'
  startLine: 50
  message: 'This will highlight only one line'

# it will print all added messages in console with related pieces of text
riline.printMessages()
```

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