Socket
Socket
Sign inDemoInstall

express-guess-lang

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

2

package.json
{
"name": "express-guess-lang",
"version": "0.0.4",
"version": "0.0.5",
"description": "Provides the language accepted by the users browser in the request object",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,2 +13,4 @@ # express-guess-lang

The init method takes an optional options object for further configuration.
var express = require('express')

@@ -24,3 +26,3 @@ var expressGuessLang = require('express-guess-lang')

app.use(expressGuessLang.init)
app.use(expressGuessLang.init())
app.use(app.router)

@@ -30,2 +32,17 @@ ...

Layout of the optional options object. The default options come to use, when no localization information could be inferred.
var opts = {
defaultLanguage: 'de',
defaultRegion: 'DE'
}
app.configure(function () {
...
app.use(expressGuessLang.init(opts))
app.use(app.router)
...
})
## Usage

@@ -32,0 +49,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc