Skip to main content
Module

x/i18next_locize_backend/package.json

A simple i18next backend for locize.com which can be used in Node.js, in the browser and for Deno.
Go to Latest
File
{ "name": "i18next-locize-backend", "version": "4.1.3", "description": "i18next-locize-backend is a backend layer for i18next to use locize service which can be used in node.js, in the browser and for deno.", "keywords": [ "i18next", "i18next-backend", "locize" ], "homepage": "https://github.com/locize/i18next-locize-backend", "bugs": "https://github.com/locize/i18next-locize-backend/issues", "repository": { "type": "git", "url": "git://github.com/locize/i18next-locize-backend.git" }, "type": "module", "main": "./cjs/index.js", "exports": { "./package.json": "./package.json", ".": { "require": "./cjs/index.js", "default": "./esm/index.js" }, "./cjs": { "default": "./cjs/index.js" }, "./esm": { "default": "./esm/index.js" } }, "module": "./esm/index.js", "dependencies": { "node-fetch": "2.6.0" }, "types": "./index.d.ts", "devDependencies": { "@babel/cli": "7.10.5", "@babel/core": "7.11.1", "@babel/preset-env": "7.11.0", "babel-plugin-add-module-exports": "1.0.2", "browserify": "16.5.2", "eslint": "7.6.0", "eslint-config-standard": "14.1.1", "eslint-plugin-import": "2.22.0", "eslint-plugin-node": "11.1.0", "eslint-plugin-promise": "4.2.1", "eslint-plugin-require-path-exists": "1.1.9", "eslint-plugin-standard": "4.0.1", "expect.js": "0.3.1", "i18next": "19.6.3", "json-server": "0.16.1", "mocha": "8.1.1", "uglify-js": "3.10.1", "xmlhttprequest": "1.8.0" }, "scripts": { "lint": "eslint .", "compile:esm": "rm -rf esm && mkdir esm && BABEL_ENV=esm babel lib -d esm && cp lib/getFetch.cjs esm/getFetch.cjs", "compile:cjs": "rm -rf cjs && mkdir cjs && BABEL_ENV=cjs babel lib -d cjs && echo '{\"type\":\"commonjs\"}' > cjs/package.json && cp lib/getFetch.cjs cjs/getFetch.js && node -e \"fs.writeFileSync('cjs/request.js', fs.readFileSync('cjs/request.js').toString().replace('getFetch.cjs', 'getFetch.js'))\"", "compile": "npm run compile:esm && npm run compile:cjs", "browser": "browserify --ignore node-fetch --standalone i18nextLocizeBackend cjs/index.js -o i18nextLocizeBackend.js && uglifyjs i18nextLocizeBackend.js --compress --mangle -o i18nextLocizeBackend.min.js", "build": "npm run compile && npm run browser", "test:xmlhttpreq": "mocha test -R spec --require test/fixtures/xmlHttpRequest.cjs --exit --experimental-modules", "test:fetch": "mocha test -R spec --exit --experimental-modules", "test": "npm run lint && npm run build && npm run test:fetch && npm run test:xmlhttpreq", "preversion": "npm run test && npm run build && git push", "postversion": "git push && git push --tags" }, "author": "locize", "license": "MIT"}