# transleight

> Language Translation Stream

Latest version **0.2.0** (published 2017-02-13) · MIT license · 0 weekly downloads

## Install

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

## 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.2.0 |
| Published | 2017-02-13 |
| First published | 2014-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | indiependente |
| Maintainers | indiependente |
| Keywords | language, translation, transform, through, stream, transleight, translate, translator, google |

## Links

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

## Dependencies (7)

- [request](https://npm.io/package/request.md) ^2.40.0
- [through](https://npm.io/package/through.md) ^2.3.4
- [oppressor](https://npm.io/package/oppressor.md) 0.0.1
- [urlencode](https://npm.io/package/urlencode.md) ^0.2.0
- [chunknlines](https://npm.io/package/chunknlines.md) ^0.1.1
- [stream-combiner](https://npm.io/package/stream-combiner.md) ^0.2.1
- [google-translate-token](https://npm.io/package/google-translate-token.md) ^1.0.0

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2017-02-13
- 0.1.1 — 2017-01-31
- 0.1.0 — 2014-08-13

## README

transleight
===========

Node.js translation stream module

##What is transleight
transleight is a Stream. So everything you pipe into it, is transformed in the target language you specified.
__LANGUAGE-A => transleight => LANGUAGE-B__

_Super easy!_

The translation is powered by _Google Translate_

##APIs
transleight offers two apis:
- `transleight.stream(lang)` : it returns a stream that converts every text that receives in input, into text in language _lang_.
- `transleight.supportedLangs()` : it returns an object containing all the supported languages. Every entry has the `Language` as key and the `Code` as value. E.g. ```json{ English : 'en' }```.

##Installation
transleight is on https://www.npmjs.org

`npm install transleight`

##Examples
The `examples` folder contains more code.

transleight should be used like every other stream:

```javascript
var trnsl8 = require('transleight');

streamA.pipe(trnsl8.stream('targetLanguage')).pipe(streamB);
```

##ToDo
- [ ] Sentence Boundary Splitting
- [ ] Accept Encoding _gzip_

##License
####MIT

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