# lol-io

> Codeforces uses d8 for testing javascript code. d8 provides IO functions, but if you don't want install d8 and you want testing your solutions using node.js then you can use this module If you want try d8 you can downlo

Latest version **1.1.0** (published 2019-08-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install lol-io
pnpm add lol-io
yarn add lol-io
bun add lol-io
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-08-17 |
| First published | 2018-02-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | hapsidra |
| Maintainers | hapsidra |
| Keywords | io, input, output, print, readline, codeforces, lol-io, file, console |

## Links

- npm: https://www.npmjs.com/package/lol-io
- Repository: https://github.com/Hapsidra/lol-io
- Homepage: https://github.com/Hapsidra/lol-io#readme
- Issues: https://github.com/Hapsidra/lol-io/issues
- npm.io page: https://npm.io/package/lol-io

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2019-08-17
- 1.0.9 — 2018-03-05
- 1.0.8 — 2018-02-15
- 1.0.7 — 2018-02-15
- 1.0.6 — 2018-02-15
- 1.0.5 — 2018-02-15
- 1.0.4 — 2018-02-15
- 1.0.3 — 2018-02-15
- 1.0.2 — 2018-02-15
- 1.0.1 — 2018-02-15
- 1.0.0 — 2018-02-15

## README

# lol-io

<a href="codefores.ru">Codeforces</a> uses d8 for testing javascript code. d8 provides IO functions, but if you don't want install d8 and you want testing your solutions using node.js then you can use this module<br><br>
If you want try d8 you can download it compiled for windows <a href="http://assets.codeforces.com/files/v8-3.32.0.7z">here</a><br><br>
Post about js on codeforces http://codeforces.com/blog/entry/10024<br>
Discussing on codeforces http://codeforces.com/blog/entry/57807

When you use this library, your code is valid for submitting to codeforces

# Example

```js
var print = this.print || require('lol-io').print
var write = this.write || require('lol-io').write
var readline = this.readline || require('lol-io').readline
// a + b
const s = readline().split(' ')
print(+s[0] + +s[1]);
```

## Installation

This is a [Node.js](https://nodejs.org/en/) module available through the
[npm registry](https://www.npmjs.com/).

Before installing, [download and install Node.js](https://nodejs.org/en/download/).

Installation is done using the
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):

```bash
$ npm install lol-io
```

## Functions
- <code>write</code> - write line into <code>output.txt</code>, example <code>write('hello', 'world')</code>
- <code>print</code> - write line into <code>output.txt</code>, automatically prints new line, example <code>print('hello', 'world')</code>
- <code>readline</code> - read line from <code>input.txt</code>, example <code>var line = readline()</code>, if no more lines return <code>undefined</code>

## Features 
- automatic creation of <code>input.txt</code> and <code>output.txt</code>, if does not exist

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