i18next-http-backend

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

lint

eslint .

test

npm run lint && npm run build && npm run test:fetch && npm run test:xmlhttpreq

build

npm run compile && npm run browser

browser

browserify --ignore cross-fetch --standalone i18nextHttpBackend cjs/index.js -o i18nextHttpBackend.js && uglifyjs i18nextHttpBackend.js --compress --mangle -o i18nextHttpBackend.min.js

compile

npm run compile:esm && npm run compile:cjs

test:deno

deno test --allow-net test/deno/*.js

preversion

npm run test && npm run build && git push

test:fetch

mocha test -R spec --exit --experimental-modules

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:esm

rm -rf esm && mkdir esm && BABEL_ENV=esm babel lib -d esm && cp lib/getFetch.cjs esm/getFetch.cjs && rm -f esm/getFetch.js

postversion

git push && git push --tags

test:xmlhttpreq

mocha test -R spec --require test/fixtures/xmlHttpRequest.cjs --exit --experimental-modules

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 1/21/2022

Downloads

Maintainers