JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 108
  • Score
    100M100P100Q63577F
  • License ISC

resolve accept langagues request

Package Exports

  • express-langs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (express-langs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

express-langs

express-langs is an middleware for express

resolve langagues accept in header request get array langagues with request.langs

const langs = require('express-langs');

app.use( langs() );

you can give an default langagues optional if header accept is not defined or null

app.use( langs('en-US') );