# transilien

> Get the status (ok or ko) of the railways traffic according Lines.

Latest version **1.0.0** (published 2015-05-05) · MIT license · 0 weekly downloads

## Install

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

Provides the command `transilien2`.

## 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.0.0 |
| Published | 2015-05-05 |
| First published | 2015-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yassine AZZOUT |
| Maintainers | joliscri.pt |
| Keywords | transilien, trains, paris |

## Links

- npm: https://www.npmjs.com/package/transilien
- Repository: https://github.com/92bondstreet/transilien2
- Homepage: https://github.com/92bondstreet/transilien
- Issues: https://github.com/92bondstreet/transilien2/issues
- npm.io page: https://npm.io/package/transilien

## Dependencies (1)

- [meow](https://npm.io/package/meow.md) ^2.0.0

## Recent versions

- 1.0.0 (latest) — 2015-05-05

## README

# transilien

<!--
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-url]][daviddm-image]
-->

> Get the status (ok or ko) of the railways traffic according Lines.

## Keynote

Get the status (`ok` or `ko`) of the railways traffic according Lines.

## Install

```sh
$ npm install --save transilien
```


## Usage

```
var transilien = require('transilien');

// Get traffic status for all Lines
transilien.lignes(callback);

// Get traffic status for Lines L and U
transilien.lignes(["L","U"],callback);

```

### Callback results example

```
[{
	"line": "L",
	"status": "ok",
	"message": "Trafic normal"
},
{
	"line": "N",
	"status": "nok",
	"message": "Ligne N : retards Paris Montparnasse - Dreux"
}]
```

## Methods

```
transilien.lignes([code],callback)
```

With

* `code`, optional, array containing list of Lines code
* `callback` with error return and Lines traffic status results.

### Status Schema

```
{
	"title": "Line status",
	"type": "object",
	"properties": {
		"line": {
			"type": "string",
			"description": "Code line"
		},
		"status": {
			"type": "string",
			"description": "Traffic status"
		},
    "message": {
      "type": "string",
			"description": "Traffic message"
    }
	},
	"required": ["line", "status", "message"]
}
```

### JSON Example

```
{
  "line": "L",
  "status": "ok",
  "message": "Trafic normal"
}
```

## License

MIT © [Yassine AZZOUT](yass.io)


[npm-url]: https://npmjs.org/package/transilien2
[npm-image]: https://badge.fury.io/js/transilien2.svg
[travis-url]: https://travis-ci.org/92bondstreet/transilien2
[travis-image]: https://travis-ci.org/92bondstreet/transilien2.svg?branch=master
[daviddm-url]: https://david-dm.org/92bondstreet/transilien2.svg?theme=shields.io
[daviddm-image]: https://david-dm.org/92bondstreet/transilien2

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