# gengojs-default-header

> The default header plugin for gengojs

Latest version **0.1.5** (published 2015-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install gengojs-default-header
pnpm add gengojs-default-header
yarn add gengojs-default-header
bun add gengojs-default-header
```

## 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.5 |
| Published | 2015-10-07 |
| First published | 2015-03-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | iwatakeshi |
| Maintainers | iwatakeshi |
| Keywords | gengojs-plugin, header, accept-language |

## Links

- npm: https://www.npmjs.com/package/gengojs-default-header
- Repository: https://github.com/gengojs/plugin-header
- Issues: https://github.com/gengojs/plugin-header/issues
- npm.io page: https://npm.io/package/gengojs-default-header

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^3.8.0
- [gengojs-debug](https://npm.io/package/gengojs-debug.md) ^2.0.4
- [gengojs-accept](https://npm.io/package/gengojs-accept.md) 0.2.6

## Recent versions

- 0.1.5 (latest) — 2015-10-07
- 0.1.4 — 2015-10-05
- 0.1.3 — 2015-10-05
- 0.1.2 — 2015-10-02
- 0.1.1 — 2015-10-02
- 0.0.2 — 2015-08-23
- 0.0.1 — 2015-05-08
- 0.0.1-beta.5 — 2015-04-22
- 0.0.1-beta.4 — 2015-04-19
- 0.0.1-beta.3 — 2015-04-09
- 0.0.1-beta.2 — 2015-04-08
- 0.0.1-beta.1 — 2015-03-29

## README

# gengojs-default-header

The default accept plugin for gengo.js.

[![Build Status](https://travis-ci.org/gengojs/plugin-header.svg?branch=master)](https://travis-ci.org/gengojs/plugin-header)

This module is a plugified version of [gengojs-accept](https://github.com/iwatakeshi/gengojs-accept) for [gengo.js](https://github.com/iwatakeshi/gengojs).

## Documentation

See [documentation](https://gengojs.github.io/plugin-header).

## Internal API

* `getLocale(locale:String)`
	* Should return a string of the current locale.
* `setLocale(locale:String)`
	* Should set the locale.
* `detectLocale(locale:String)`
	* Should detect the current locale by parsing the 
	Accept-Language, domains, sub-domains, queries, URLs, and cookies.
* `supported:Array` from options
	* Should be an array of supported locales.

For more see [documentation](https://gengojs.github.io/plugin-header)

## Dependencies

Not Applicable

## Debug

Unix:

```bash
DEBUG=gengo.header
```
Windows:

```bash
SET DEBUG=gengo.header
```

See [gengojs-debug](https://github.com/gengojs/gengojs-debug) for usage.

## Contribute

Feel free to contribute or even fork the project. This plugin has been
written in ES6 and can be seen under `lib/index.js`.
If you would like to contribute to the header parser,
visit [gengojs-accept's GitHub page](https://github.com/gengojs/accept).

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