UNPKG

i18next-http-backend

Version:

i18next-http-backend is a backend layer for i18next using in Node.js, in the browser and for Deno.

80 lines (79 loc) 2.42 kB
{ "name": "i18next-http-backend", "version": "4.0.0", "private": false, "type": "module", "sideEffects": false, "engines": { "node": ">=18" }, "main": "./cjs/index.js", "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.ts", "default": "./esm/index.js" } }, "module": "./esm/index.js", "types": "./index.d.mts", "devDependencies": { "eslint": "9.39.4", "expect.js": "0.3.1", "globals": "17.6.0", "i18next": "26.0.6", "json-server": "0.17.4", "json5": "2.2.3", "jsonc-parser": "3.3.1", "mocha": "11.7.5", "neostandard": "0.13.0", "tsd": "0.33.0", "tsdown": "0.21.10", "typescript": "6.0.3", "xmlhttprequest": "1.8.0" }, "description": "i18next-http-backend is a backend layer for i18next using in Node.js, in the browser and for Deno.", "keywords": [ "i18next", "i18next-backend", "i18next-http-backend" ], "homepage": "https://github.com/i18next/i18next-http-backend", "repository": { "type": "git", "url": "git@github.com:i18next/i18next-http-backend.git" }, "bugs": { "url": "https://github.com/i18next/i18next-http-backend/issues" }, "license": "MIT", "scripts": { "lint": "eslint .", "build": "tsdown && npm run finalize", "finalize": "cp index.d.mts esm/index.d.mts && cp index.d.ts esm/index.d.ts && cp index.d.ts cjs/index.d.ts && echo '{\"type\":\"commonjs\"}' > cjs/package.json", "test:xmlhttpreq": "mocha test -R spec --require test/fixtures/xmlHttpRequest.cjs --experimental-modules", "test:fetch": "mocha test -R spec --experimental-modules", "test": "npm run lint && npm run build && npm run test:fetch && npm run test:xmlhttpreq && npm run test:typescript", "test:typescript": "tsc --noEmit && tsd", "test:deno": "deno test --allow-net --allow-env test/deno/*.js", "preversion": "npm run test && npm run build && git push", "postversion": "git push && git push --tags" }, "tsd": { "directory": "test/typescript" } }