Socket
Book a DemoInstallSign in
Socket

gengojs-default-header

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gengojs-default-header

The default header plugin for gengojs

latest
Source
npmnpm
Version
0.1.5
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

gengojs-default-header

The default accept plugin for gengo.js.

Build Status

This module is a plugified version of gengojs-accept for gengo.js.

Documentation

See documentation.

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

Dependencies

Not Applicable

Debug

Unix:

DEBUG=gengo.header

Windows:

SET DEBUG=gengo.header

See 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.

Keywords

gengojs-plugin

FAQs

Package last updated on 07 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts