UNPKG

i18next-http-middleware

Version:

i18next-http-middleware is a middleware to be used with Node.js web frameworks like express or Fastify and also for Deno.

87 lines (86 loc) 2.78 kB
{ "name": "i18next-http-middleware", "version": "3.7.4", "private": false, "type": "module", "main": "./cjs/index.js", "types": "./index.d.mts", "exports": { "./package.json": "./package.json", ".": { "types": { "require": "./cjs/index.d.ts", "import": "./esm/index.d.mts" }, "module": "./esm/index.js", "import": "./esm/index.js", "require": "./cjs/index.js", "default": "./esm/index.js" }, "./cjs": { "types": "./cjs/index.d.ts", "default": "./cjs/index.js" }, "./esm": { "types": "./esm/index.d.mts", "default": "./esm/index.js" } }, "module": "./esm/index.js", "devDependencies": { "@babel/cli": "7.25.9", "@babel/core": "7.26.0", "@babel/preset-env": "7.26.0", "@hapi/hapi": "^21.3.12", "@types/express-serve-static-core": "^5.0.1", "@koa/router": "12.0.1", "koa": "2.16.1", "babel-plugin-add-module-exports": "1.0.4", "eslint": "8.53.0", "eslint-config-standard": "17.1.0", "eslint-plugin-import": "2.31.0", "eslint-plugin-n": "16.6.2", "eslint-plugin-promise": "6.6.0", "eslint-plugin-require-path-exists": "1.1.9", "eslint-plugin-standard": "5.0.0", "expect.js": "0.3.1", "express": "4.21.1", "fastify": "5.1.0", "i18next": "24.0.0", "mocha": "10.8.2", "supertest": "7.0.0", "tsd": "0.31.2", "uglify-js": "3.19.3" }, "description": "i18next-http-middleware is a middleware to be used with Node.js web frameworks like express or Fastify and also for Deno.", "keywords": [ "i18next", "i18next-backend", "i18next-http-middleware", "express" ], "homepage": "https://github.com/i18next/i18next-http-middleware", "repository": { "type": "git", "url": "git@github.com:i18next/i18next-http-middleware.git" }, "bugs": { "url": "https://github.com/i18next/i18next-http-middleware/issues" }, "license": "MIT", "scripts": { "lint": "eslint .", "compile:esm": "rm -rf esm && mkdir esm && BABEL_ENV=esm babel lib -d esm && cp index.d.ts esm/index.d.ts && cp index.d.mts esm/index.d.mts", "compile:cjs": "rm -rf cjs && mkdir cjs && BABEL_ENV=cjs babel lib -d cjs && cp index.d.ts cjs/index.d.ts && echo '{\"type\":\"commonjs\"}' > cjs/package.json", "compile": "npm run compile:esm && npm run compile:cjs", "build": "npm run compile", "test": "npm run lint && npm run build && mocha test -R spec --exit --experimental-modules && npm run test:types", "test:deno": "deno test --allow-net test/deno/*.js", "test:types": "tsd", "preversion": "npm run test && npm run build && git push", "postversion": "git push && git push --tags" }, "tsd": { "directory": "test/types" } }