{"_id":"translate","_rev":"1455098","name":"translate","description":"Translate text to different languages on node.js and the browser","dist-tags":{"latest":"1.4.1"},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"time":{"modified":"2021-11-08T07:36:02.000Z","created":"2011-01-25T03:37:22.923Z","1.4.1":"2021-11-08T07:34:59.657Z","1.4.0":"2021-09-23T04:08:11.105Z","1.3.0":"2021-09-18T06:00:16.573Z","1.2.3":"2021-03-15T13:53:08.355Z","1.2.2":"2021-03-14T16:24:24.922Z","1.2.1":"2021-02-07T01:46:06.387Z","1.2.0":"2021-02-07T01:40:04.080Z","1.1.2":"2020-03-08T10:10:16.380Z","1.1.1":"2020-01-13T09:01:38.510Z","1.1.0":"2019-04-08T08:32:14.784Z","1.0.4":"2019-02-09T07:49:59.921Z","1.0.3":"2018-10-17T01:22:39.135Z","1.0.2":"2018-01-11T12:06:30.042Z","1.0.1":"2017-12-03T06:38:16.146Z","1.0.0":"2017-11-14T06:26:15.183Z","0.7.0":"2011-04-05T23:00:21.074Z","0.6.0":"2011-01-25T03:37:22.923Z","0.3.3":"2011-01-25T03:37:22.923Z","0.1.0":"2011-01-25T03:37:22.923Z"},"users":{"tnkemdilim":true,"hsiang":true},"author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"versions":{"1.4.1":{"name":"translate","version":"1.4.1","description":"Translate text to different languages on node.js and the browser","homepage":"https://github.com/franciscop/translate#readme","repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"bugs":{"url":"https://github.com/franciscop/translate/issues"},"funding":{"url":"https://www.paypal.me/franciscopresencia/19"},"author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"license":"MIT","scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js --name translate --output.format umd | uglifyjs -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"keywords":["translate","languages","i18n","internationalization","async","google","yandex"],"main":"translate.min.js","dependencies":{"@babel/preset-env":"^7.15.6","node-fetch":"^2.6.0"},"devDependencies":{"@babel/plugin-transform-runtime":"^7.15.0","babel-core":"^6.26.3","babel-jest":"^27.2.1","dotenv":"^4.0.0","fetch-mock":"^9.11.0","jest":"^27.2.1","rollup":"^0.50.0","uglify-es":"^3.1.3"},"babel":{"presets":["@babel/preset-env"],"plugins":[["@babel/plugin-transform-runtime"]]},"gitHead":"1b0bb6e9eb491ab412dd281245a826ce89598db8","_id":"translate@1.4.1","_nodeVersion":"15.7.0","_npmVersion":"7.4.3","dist":{"shasum":"555d8f7932c11ce91e716274833875c8eadda05e","size":19156,"noattachment":false,"key":"/translate/-/translate-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.4.1.tgz"},"_npmUser":{"name":"franciscop","email":"public@francisco.io"},"directories":{},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate_1.4.1_1636356899490_0.24330963417694895"},"_hasShrinkwrap":false,"publish_time":1636356899657,"_cnpm_publish_time":1636356899657},"1.4.0":{"name":"translate","version":"1.4.0","description":"Translate text to different languages on node.js and the browser","homepage":"https://github.com/franciscop/translate#readme","repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"bugs":{"url":"https://github.com/franciscop/translate/issues"},"funding":{"url":"https://www.paypal.me/franciscopresencia/19"},"author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"license":"MIT","scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js --name translate --output.format umd | uglifyjs -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"keywords":["translate","languages","i18n","internationalization","async","google","yandex"],"main":"translate.min.js","dependencies":{"@babel/preset-env":"^7.15.6","node-fetch":"^2.6.0"},"devDependencies":{"@babel/plugin-transform-runtime":"^7.15.0","babel-core":"^6.26.3","babel-jest":"^27.2.1","dotenv":"^4.0.0","fetch-mock":"^9.11.0","jest":"^27.2.1","rollup":"^0.50.0","uglify-es":"^3.1.3"},"babel":{"presets":["@babel/preset-env"],"plugins":[["@babel/plugin-transform-runtime"]]},"gitHead":"c1b4c1f2899909320888e7f41be268a820ff0f32","_id":"translate@1.4.0","_nodeVersion":"15.7.0","_npmVersion":"7.4.3","dist":{"shasum":"4da6c4a67a3e3d8c7d10b1c731c9f21828b96239","size":19016,"noattachment":false,"key":"/translate/-/translate-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.4.0.tgz"},"_npmUser":{"name":"franciscop","email":"public@francisco.io"},"directories":{},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate_1.4.0_1632370090938_0.15824313890999164"},"_hasShrinkwrap":false,"publish_time":1632370091105,"_cnpm_publish_time":1632370091105},"1.3.0":{"name":"translate","version":"1.3.0","description":"Translate text to different languages on node.js and the browser","homepage":"https://github.com/franciscop/translate#readme","repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"bugs":{"url":"https://github.com/franciscop/translate/issues"},"funding":{"url":"https://www.paypal.me/franciscopresencia/19"},"author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"license":"MIT","scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js -o translate.js --name translate --output.format umd && uglifyjs translate.js -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js --detectOpenHandles","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"keywords":["translate","languages","i18n","internationalization","async","google","yandex"],"main":"translate.min.js","engine":["node >=4.0.0"],"dependencies":{"node-fetch":"^1.7.3"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^21.2.0","babel-preset-env":"^1.7.0","dotenv":"^4.0.0","fetch-mock":"^5.13.1","jest":"^23.6.0","rollup":"^0.50.0","uglify-es":"^3.1.3"},"gitHead":"fd1ca1d9812198d1210012a31b8ee0f8758217b9","_id":"translate@1.3.0","_nodeVersion":"15.7.0","_npmVersion":"7.4.3","dist":{"shasum":"db51623ef57d5a43ba10054c653553af5130f98c","size":21718,"noattachment":false,"key":"/translate/-/translate-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.3.0.tgz"},"_npmUser":{"name":"franciscop","email":"public@francisco.io"},"directories":{},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate_1.3.0_1631944816389_0.2019165616282388"},"_hasShrinkwrap":false,"publish_time":1631944816573,"_cnpm_publish_time":1631944816573},"1.2.3":{"name":"translate","version":"1.2.3","description":"Translate text to different languages on node.js and the browser","homepage":"https://github.com/franciscop/translate#readme","repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"bugs":{"url":"https://github.com/franciscop/translate/issues"},"funding":{"url":"https://www.paypal.me/franciscopresencia/19"},"author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"license":"MIT","scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js -o translate.js --name translate --output.format umd && uglifyjs translate.js -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js --detectOpenHandles","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"keywords":["translate","languages","i18n","internationalization","async","google","yandex"],"main":"translate.min.js","engine":["node >=4.0.0"],"dependencies":{"node-fetch":"^1.7.3"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^21.2.0","babel-preset-env":"^1.7.0","dotenv":"^4.0.0","fetch-mock":"^5.13.1","jest":"^23.6.0","rollup":"^0.50.0","uglify-es":"^3.1.3"},"gitHead":"aeb8fe396c7901f0208cb619930bc04a0dda7e85","_id":"translate@1.2.3","_nodeVersion":"15.7.0","_npmVersion":"7.4.3","dist":{"shasum":"c486e095881f69b92419709d2d1532902197a955","size":20902,"noattachment":false,"key":"/translate/-/translate-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.2.3.tgz"},"_npmUser":{"name":"franciscop","email":"public@francisco.io"},"directories":{},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate_1.2.3_1615816388214_0.2377633903148204"},"_hasShrinkwrap":false,"publish_time":1615816388355,"_cnpm_publish_time":1615816388355},"1.2.2":{"name":"translate","version":"1.2.2","description":"Translate text to different languages on node.js and the browser","homepage":"https://github.com/franciscop/translate#readme","repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"bugs":{"url":"https://github.com/franciscop/translate/issues"},"funding":{"url":"https://www.paypal.me/franciscopresencia/19"},"author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"license":"MIT","scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js -o translate.js --name translate --output.format umd && uglifyjs translate.js -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js --detectOpenHandles","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"keywords":["translate","languages","i18n","internationalization","async","google","yandex"],"main":"translate.min.js","engine":["node >=4.0.0"],"dependencies":{"node-fetch":"^1.7.3"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^21.2.0","babel-preset-env":"^1.7.0","dotenv":"^4.0.0","fetch-mock":"^5.13.1","jest":"^23.6.0","rollup":"^0.50.0","uglify-es":"^3.1.3"},"gitHead":"35db0ac353970237668b6171b289283d76880a5c","_id":"translate@1.2.2","_nodeVersion":"15.7.0","_npmVersion":"7.4.3","dist":{"shasum":"cd5e43c414d3bea5e88c9d2d8289a80c845594b4","size":19524,"noattachment":false,"key":"/translate/-/translate-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.2.2.tgz"},"_npmUser":{"name":"franciscop","email":"public@francisco.io"},"directories":{},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate_1.2.2_1615739064795_0.19677887788240866"},"_hasShrinkwrap":false,"publish_time":1615739064922,"_cnpm_publish_time":1615739064922},"1.2.1":{"name":"translate","version":"1.2.1","description":"Translate text to different languages on node.js and the browser","homepage":"https://github.com/franciscop/translate#readme","repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"bugs":{"url":"https://github.com/franciscop/translate/issues"},"funding":{"url":"https://www.paypal.me/franciscopresencia/19"},"author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"license":"MIT","scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js -o translate.js --name translate --output.format umd && uglifyjs translate.js -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js --detectOpenHandles","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"keywords":["translate","languages","i18n","internationalization","async","google","yandex"],"main":"translate.min.js","engine":["node >=4.0.0"],"dependencies":{"node-fetch":"^1.7.3"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^21.2.0","babel-preset-env":"^1.7.0","dotenv":"^4.0.0","fetch-mock":"^5.13.1","jest":"^23.6.0","rollup":"^0.50.0","uglify-es":"^3.1.3"},"gitHead":"ed95669f7490deb35777a2920a3be869d0ec8ab4","_id":"translate@1.2.1","_nodeVersion":"15.7.0","_npmVersion":"7.4.3","dist":{"shasum":"d436ebc1d869666afbb92e3ae97f2a776e724d2a","size":19516,"noattachment":false,"key":"/translate/-/translate-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.2.1.tgz"},"_npmUser":{"name":"franciscop","email":"public@francisco.io"},"directories":{},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate_1.2.1_1612662366256_0.9065713533853494"},"_hasShrinkwrap":false,"publish_time":1612662366387,"_cnpm_publish_time":1612662366387},"1.2.0":{"name":"translate","version":"1.2.0","description":"Translate text to different languages on node.js and the browser","homepage":"https://github.com/franciscop/translate#readme","repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"bugs":{"url":"https://github.com/franciscop/translate/issues"},"funding":{"url":"https://www.paypal.me/franciscopresencia/19"},"author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"license":"MIT","scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js -o translate.js --name translate --output.format umd && uglifyjs translate.js -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js --detectOpenHandles","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"keywords":["translate","languages","i18n","internationalization","async","google","yandex"],"main":"translate.min.js","engine":["node >=4.0.0"],"dependencies":{"node-fetch":"^1.7.3"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^21.2.0","babel-preset-env":"^1.7.0","dotenv":"^4.0.0","fetch-mock":"^5.13.1","jest":"^23.6.0","rollup":"^0.50.0","uglify-es":"^3.1.3"},"gitHead":"f44c501f329dbbd5c488baac4cd5a36d0058fc73","_id":"translate@1.2.0","_nodeVersion":"15.7.0","_npmVersion":"7.4.3","dist":{"shasum":"2d8787fae493b0952ac8253b83ac147a3a0f0bf8","size":19512,"noattachment":false,"key":"/translate/-/translate-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.2.0.tgz"},"_npmUser":{"name":"franciscop","email":"public@francisco.io"},"directories":{},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate_1.2.0_1612662003835_0.18417518046450754"},"_hasShrinkwrap":false,"publish_time":1612662004080,"_cnpm_publish_time":1612662004080},"1.1.2":{"name":"translate","version":"1.1.2","description":"Translate text to different languages on node.js and the browser","homepage":"https://github.com/franciscop/translate#readme","repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"bugs":{"url":"https://github.com/franciscop/translate/issues"},"funding":"https://www.paypal.me/franciscopresencia/19","author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"license":"MIT","scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js -o translate.js --name translate --output.format umd && uglifyjs translate.js -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js --detectOpenHandles","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"keywords":["translate","languages","i18n","internationalization","async","google","yandex"],"main":"translate.min.js","engine":["node >=4.0.0"],"dependencies":{"node-fetch":"^1.7.3"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^21.2.0","babel-preset-env":"^1.7.0","dotenv":"^4.0.0","fetch-mock":"^5.13.1","jest":"^23.6.0","rollup":"^0.50.0","uglify-es":"^3.1.3"},"gitHead":"855b6f55684b13f803b58f88b53aaeac98f9881f","_id":"translate@1.1.2","_nodeVersion":"13.5.0","_npmVersion":"6.13.4","dist":{"shasum":"719665e7f324cfc28619726fc1d97f5a633c37e3","size":19203,"noattachment":false,"key":"/translate/-/translate-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.1.2.tgz"},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_npmUser":{"name":"franciscop","email":"public@francisco.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate_1.1.2_1583662216102_0.124944655803918"},"_hasShrinkwrap":false,"publish_time":1583662216380,"_cnpm_publish_time":1583662216380},"1.1.1":{"name":"translate","version":"1.1.1","description":"Translate text to different languages on node.js and the browser","homepage":"https://github.com/franciscop/translate#readme","repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"bugs":{"url":"https://github.com/franciscop/translate/issues"},"funding":"https://www.paypal.me/franciscopresencia/19","author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"license":"MIT","scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js -o translate.js --name translate --output.format umd && uglifyjs translate.js -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js --detectOpenHandles","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"keywords":["translate","languages","i18n","internationalization","async","google","yandex"],"main":"translate.min.js","engine":["node >=4.0.0"],"dependencies":{"node-fetch":"^1.7.3"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^21.2.0","babel-preset-env":"^1.7.0","dotenv":"^4.0.0","fetch-mock":"^5.13.1","jest":"^23.6.0","rollup":"^0.50.0","uglify-es":"^3.1.3"},"gitHead":"9094e718076f02b76fc948b8ecd7e14684a3f64b","_id":"translate@1.1.1","_nodeVersion":"13.5.0","_npmVersion":"6.13.4","dist":{"shasum":"5280b998e4ebec4868e2d3db902c3a53c448bd19","size":19093,"noattachment":false,"key":"/translate/-/translate-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.1.1.tgz"},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_npmUser":{"name":"franciscop","email":"public@francisco.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate_1.1.1_1578906098407_0.39618557351940087"},"_hasShrinkwrap":false,"publish_time":1578906098510,"_cnpm_publish_time":1578906098510},"1.1.0":{"name":"translate","description":"Translate text to different languages on node.js and the browser","main":"translate.min.js","version":"1.1.0","author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js -o translate.js --name translate --output.format umd && uglifyjs translate.js -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js --detectOpenHandles","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"engine":["node >=4.0.0"],"dependencies":{"node-fetch":"^1.7.3"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^21.2.0","babel-preset-env":"^1.7.0","dotenv":"^4.0.0","fetch-mock":"^5.13.1","jest":"^23.6.0","rollup":"^0.50.0","uglify-es":"^3.1.3"},"gitHead":"c6aeda4a04532c6999b5db344d93590a54f08e47","bugs":{"url":"https://github.com/franciscop/translate/issues"},"homepage":"https://github.com/franciscop/translate#readme","_id":"translate@1.1.0","_nodeVersion":"11.13.0","_npmVersion":"6.8.0","dist":{"shasum":"1dc32dd053bd295c6030a36a6fe0141155bbcaa4","size":18348,"noattachment":false,"key":"/translate/-/translate-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.1.0.tgz"},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_npmUser":{"name":"franciscop","email":"public@francisco.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate_1.1.0_1554712334583_0.495614243503687"},"_hasShrinkwrap":false,"publish_time":1554712334784,"_cnpm_publish_time":1554712334784},"1.0.4":{"name":"translate","description":"Translate text to different languages on node.js and the browser","main":"translate.min.js","version":"1.0.4","author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js -o translate.js --name translate --output.format umd && uglifyjs translate.js -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js --detectOpenHandles","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"engine":["node >=4.0.0"],"dependencies":{"node-fetch":"^1.7.3"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^21.2.0","babel-preset-env":"^1.7.0","dotenv":"^4.0.0","fetch-mock":"^5.13.1","rollup":"^0.50.0","uglify-es":"^3.1.3"},"gitHead":"125a0c0045679dc3808c9e7b002ec2053aba1f3d","bugs":{"url":"https://github.com/franciscop/translate/issues"},"homepage":"https://github.com/franciscop/translate#readme","_id":"translate@1.0.4","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"franciscop","email":"public@francisco.io"},"dist":{"shasum":"df90e6ab8041d6f9d86081553b078fcfc43a1ce8","size":18267,"noattachment":false,"key":"/translate/-/translate-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.0.4.tgz"},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate_1.0.4_1549698599732_0.7565523471675915"},"_hasShrinkwrap":false,"publish_time":1549698599921,"_cnpm_publish_time":1549698599921},"1.0.3":{"name":"translate","description":"Translate text to different languages on node.js and the browser","main":"translate.min.js","version":"1.0.3","author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js -o translate.js --name translate --output.format umd && uglifyjs translate.js -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js --detectOpenHandles","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"engine":["node >=4.0.0"],"dependencies":{"node-fetch":"^1.7.3"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^21.2.0","babel-preset-env":"^1.7.0","dotenv":"^4.0.0","fetch-mock":"^5.13.1","rollup":"^0.50.0","uglify-es":"^3.1.3"},"gitHead":"147ef0ef0492129b27d327471be83d16b5ccbf95","bugs":{"url":"https://github.com/franciscop/translate/issues"},"homepage":"https://github.com/franciscop/translate#readme","_id":"translate@1.0.3","_npmVersion":"6.3.0","_nodeVersion":"8.9.3","_npmUser":{"name":"franciscop","email":"public@francisco.io"},"dist":{"shasum":"8b8140dcd4034746efe4266cab34ec18bbbbd479","size":19543,"noattachment":false,"key":"/translate/-/translate-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.0.3.tgz"},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate_1.0.3_1539739358494_0.15577909568117132"},"_hasShrinkwrap":false,"publish_time":1539739359135,"_cnpm_publish_time":1539739359135},"1.0.2":{"name":"translate","description":"Translate text to different languages on node.js and the browser","main":"translate.min.js","version":"1.0.2","author":{"name":"Francisco Presencia","email":"public@francisco.io","url":"https://francisco.io/"},"repository":{"type":"git","url":"git+https://github.com/franciscop/translate.git"},"scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js -o translate.js --name translate --output.format umd && uglifyjs translate.js -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js --forceExit","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"engine":["node >=4.0.0"],"dependencies":{"node-fetch":"^1.7.3"},"devDependencies":{"babel-core":"^6.26.0","babel-jest":"^21.2.0","babel-preset-env":"^1.6.1","dotenv":"^4.0.0","fetch-mock":"^5.13.1","rollup":"^0.50.0","uglify-es":"^3.1.3"},"gitHead":"451fe33b2d8fc478286e099d8bbd69c793c557c2","bugs":{"url":"https://github.com/franciscop/translate/issues"},"homepage":"https://github.com/franciscop/translate#readme","_id":"translate@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"franciscop","email":"public@francisco.io"},"dist":{"shasum":"31834b828d3e06e936cb24e7d2ddbb2dcf73a400","size":18207,"noattachment":false,"key":"/translate/-/translate-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.0.2.tgz"},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate-1.0.2.tgz_1515672389959_0.16579699027352035"},"directories":{},"publish_time":1515672390042,"_hasShrinkwrap":false,"_cnpm_publish_time":1515672390042},"1.0.1":{"name":"translate","description":"Translate text to different languages on node.js and the browser","main":"translate.min.js","version":"1.0.1","author":{"name":"Francisco Presencia"},"repository":{"type":"git","url":"git+ssh://git@github.com/Marak/translate.js.git"},"scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js -o translate.js --name translate --output.format umd && uglifyjs translate.js -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js --forceExit","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"engine":["node >=4.0.0"],"dependencies":{"node-fetch":"^1.7.3"},"devDependencies":{"babel-core":"^6.26.0","babel-jest":"^21.2.0","babel-preset-env":"^1.6.1","dotenv":"^4.0.0","fetch-mock":"^5.13.1","rollup":"^0.50.0","uglify-es":"^3.1.3"},"gitHead":"1f828afb4a60303dee1366506896ad6698505f71","bugs":{"url":"https://github.com/Marak/translate.js/issues"},"homepage":"https://github.com/Marak/translate.js#readme","_id":"translate@1.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.0.0","_npmUser":{"name":"franciscop","email":"public@francisco.io"},"dist":{"shasum":"6c2ec08434a01a494d8eabf3d17b76574f98c08c","size":17616,"noattachment":false,"key":"/translate/-/translate-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.0.1.tgz"},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate-1.0.1.tgz_1512283096021_0.5179082390386611"},"directories":{},"publish_time":1512283096146,"_hasShrinkwrap":false,"_cnpm_publish_time":1512283096146},"1.0.0":{"name":"translate","description":"Translate text to different languages on node.js and the browser","main":"translate.min.js","version":"1.0.0","author":{"name":"Francisco Presencia"},"repository":{"type":"git","url":"git+ssh://git@github.com/Marak/translate.js.git"},"scripts":{"start":"npm run watch # Start ~= Start dev","build":"rollup src/index.js -o translate.js --name translate --output.format umd && uglifyjs translate.js -o translate.min.js","test":"jest --coverage --collectCoverageFrom=src/**/*.js --forceExit","watch":"nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json","gzip":"gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"},"engine":["node >=4.0.0"],"dependencies":{"node-fetch":"^1.7.3"},"devDependencies":{"babel-core":"^6.26.0","babel-jest":"^21.2.0","babel-preset-env":"^1.6.1","dotenv":"^4.0.0","fetch-mock":"^5.13.1","rollup":"^0.50.0","uglify-es":"^3.1.3"},"gitHead":"c2f33bb9ed7c82a501e4e7c83db921ed321e84e0","bugs":{"url":"https://github.com/Marak/translate.js/issues"},"homepage":"https://github.com/Marak/translate.js#readme","_id":"translate@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.0.0","_npmUser":{"name":"franciscop","email":"public@francisco.io"},"dist":{"shasum":"04992d71d65fe47148437705e5c246b4e8b770b8","size":18081,"noattachment":false,"key":"/translate/-/translate-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-1.0.0.tgz"},"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translate-1.0.0.tgz_1510640775064_0.017561490647494793"},"directories":{},"publish_time":1510640775183,"_hasShrinkwrap":false,"_cnpm_publish_time":1510640775183},"0.7.0":{"name":"translate","description":"translate text from one language to another on node.js and the browser. 30+ languages supported, simple as cake.","version":"0.7.0","author":{"name":"Marak Squires"},"repository":{"type":"git","url":"git://github.com/Marak/translate.js.git"},"engine":["node >=0.1.90"],"dependencies":{"request":">= 0.10.0","colors":">= 0.3.0"},"main":"lib/translate","_id":"translate@0.7.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.5.0-pre","directories":{"lib":"./lib"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"f94f053da98cef3fe93acf5ce8d027c3d65e0e4d","size":406758,"noattachment":false,"key":"/translate/-/translate-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-0.7.0.tgz"},"publish_time":1302044421074,"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_cnpm_publish_time":1302044421074,"_hasShrinkwrap":false},"0.6.0":{"name":"translate","description":"translate text from one language to another on node.js and the browser. 30+ languages supported, simple as cake.","version":"0.6.0","author":{"name":"Marak Squires"},"repository":{"type":"git","url":"http://github.com/Marak/translate.js.git"},"engine":["node >=0.1.90"],"dependencies":{"request":">= 0.10.0","colors":">= 0.3.0"},"main":"lib/translate","_id":"translate@0.6.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.15","_nodeVersion":"v0.3.1","directories":{"lib":"./lib"},"modules":{"languages.js":"lib/languages.js","translate.js":"lib/translate.js"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"5c5ef2a936384d64162c8a249b5bdb157dfdfc90","size":407403,"noattachment":false,"key":"/translate/-/translate-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-0.6.0.tgz"},"publish_time":1295926642923,"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_cnpm_publish_time":1295926642923,"_hasShrinkwrap":false},"0.3.3":{"name":"translate","description":"translate text from one language to another on node.js and the browser. 30+ languages supported, simple as cake.","version":"0.3.3","author":{"name":"Marak Squires"},"repository":{"type":"git","url":"http://github.com/Marak/translate.js.git"},"engine":["node >=0.1.90"],"main":"lib/translate","_id":"translate@0.3.3","engines":{"node":"*"},"_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"shasum":"a083d0966778188554a5e4608f077fccdea79a55","size":53703,"noattachment":false,"key":"/translate/-/translate-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-0.3.3.tgz"},"directories":{},"publish_time":1295926642923,"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_cnpm_publish_time":1295926642923,"_hasShrinkwrap":false},"0.1.0":{"name":"translate","description":"translate text from one language to another on node.js and the browser. 30+ languages supported, simple as cake.","version":"0.1.0","author":{"name":"Marak Squires"},"repository":{"type":"git","url":"http://github.com/Marak/translate.js.git"},"engine":["node >=0.1.90"],"main":"translate","_id":"translate@0.1.0","engines":{"node":"*"},"_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"shasum":"f8dd7c73fa85ecf0e607faf3c25d25f90a1996ae","size":3434,"noattachment":false,"key":"/translate/-/translate-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/translate/download/translate-0.1.0.tgz"},"directories":{},"publish_time":1295926642923,"maintainers":[{"name":"franciscop","email":"developerfrancisco@hotmail.com"}],"_cnpm_publish_time":1295926642923,"_hasShrinkwrap":false}},"readme":"# Translate\n\nConvert text to different languages on Node.js and the browser. Flexible package and powerful back-end using Google (default), [Yandex](https://translate.yandex.com/), [Libre](https://libretranslate.com/) or [DeepL](https://www.deepl.com/en/translator):\n\n```js\nimport translate from \"translate\";\n\ntranslate.engine = \"deepl\";\ntranslate.key = process.env.DEEPL_KEY;\n\nconst text = await translate(\"Hello world\", \"es\");\nconsole.log(\"Hola mundo\");\n```\n\n## Getting started\n\nThis package can be used in Node.js and on the browser. First thing install the library:\n\n```bash\nnpm install translate\n```\n\nThen import it to use it:\n\n```js\nimport translate from \"translate\";\n```\n\nAlternatively for the browser you can use [Jsdelivr **CDN**](https://www.jsdelivr.com/package/npm/translate):\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/translate@1/translate.min.js\"></script>\n```\n\nAfter including translate the usage is similar for both Node.js and the browser. Now you have to set which engine you want to use (default is 'google'), and the key for it if needed:\n\n```js\ntranslate.engine = \"yandex\"; // Or \"yandex\", \"libre\", \"deepl\"\ntranslate.key = process.env.YANDEX_KEY;\n```\n\nThen you can finally use it. Putting it all together:\n\n```js\n// Omit this line if loading form a CDN\nimport translate from \"translate\";\n\ntranslate.engine = \"google\"; // Or \"yandex\", \"libre\", \"deepl\"\ntranslate.key = process.env.GOOGLE_KEY;\n\nconst text = await translate(\"Hello world\", \"es\");\nconsole.log(\"Hola mundo\");\n```\n\n## Options\n\nThe first parameter is the **string** that you want to translate. Right now only a single string of text is accepted.\n\nThe second parameter is the options. It accepts either a `String` of the language to translate **to** or a simple `Object` with these options:\n\n- **`to`**: the string of the language to translate to. It can be in any of the two ISO 639 (1 or 2) or the full name in English like `Spanish`. Defaults to **en**.\n- **`from`**: the string of the language to translate to. It can be in any of the two ISO 639 (1 or 2) or the full name in English like `Spanish`. Also defaults to **en**.\n- **`cache`**: a `Number` with the milliseconds that each translation should be cached. Leave it undefined to cache it indefinitely (until a server/browser restart).\n- **`engine`**: a `String` containing the name of the engine to use for translation. Right now it defaults to `google`. Read more [in the engine section](#engines).\n- **`key`**: the API Key for the engine of your choice. Read more [in the engine section](#engines).\n- **`url`**: only available for those engines that you can install on your own server (like Libretranslate), allows you to specify a custom endpoint for the translations. [See this issue](https://github.com/franciscop/translate/issues/26#issuecomment-845038821) for more info.\n\nExamples:\n\n```js\n// Translate from English (default) to Spanish (specified)\nconst foo = await translate(\"Hello world\", \"es\");\n\n// Same as this:\nconst bar = await translate(\"Hello world\", { to: \"es\" });\n```\n\n> On both `to` and `from` defaulting to `en`: while I _am_ Spanish and was quite tempted to set this as one of those, English is the main language of the Internet and the main secondary language for those who have a different native language. This is why most of the translations will happen either to or from English.\n\n### Default options\n\nYou can change the default options for anything by calling the root library and the option name:\n\n```js\ntranslate.from = \"es\";\ntranslate.engine = \"deepl\";\n```\n\nThis can be applied to any of the options enumerated above.\n\n## Engines\n\nSeveral translating engines are available to translate your text:\n\n- **`google`**: ([demo](https://translate.google.com/) | [docs](https://cloud.google.com/translate/docs/)): Google Translate.\n- **`yandex`**: ([demo](https://translate.yandex.com/) | [docs](https://tech.yandex.com/translate/) | [API Key](https://translate.yandex.com/developers/keys)): Yandex Translate\n- **`libre`**: ([demo](https://libretranslate.com/)): An independent translation engine. You can use the official website or install it on your own server.\n- **`deepl`**: ([demo](https://www.deepl.com/en/translator)): A rapidly growing popular translation engine built wit Machine Learning.\n\n> To get the API Key you will be signing some contract with these services; it's your responsibility to follow these and we are not liable if you don't as explained in our MIT License.\n\nOnce you get the API key and if you are only going to be using one engine (very likely), we recommend setting this globally for your whole project:\n\n```js\n// ... include translate\n\ntranslate.engine = \"deepl\";\ntranslate.key = \"YOUR-KEY-HERE\";\n\n// ... use translate()\n```\n\nIf you are in Node.js, this likely comes from an environment variable:\n\n```js\n// ... include translate\n\ntranslate.engine = \"deepl\";\ntranslate.key = process.env.TRANSLATE_KEY;\n\n// ... use translate()\n```\n\nTo pass it per-translation, you can add it to your arguments:\n\n```js\ntranslate(\"Hello world\", { to: \"en\", engine: \"deepl\", key: \"YOUR-KEY-HERE\" });\n```\n\nSpecifically in Libretranslate, you can also add a `url` parameter if you install it on your own server:\n\n```js\ntranslate.url = \"https://example.com/\";\ntranslate.key = process.env.TRANSLATE_KEY;\n```\n\n## Promises\n\nWorking with Promises and specially with [async/await](https://ponyfoo.com/articles/understanding-javascript-async-await) reduces [Callback Hell](http://callbackhell.com/). To see it in action, first you'll need an `async` function. Then put your `await` calls inside:\n\n```js\n// Browser; jQuery for demonstration purposes\n$(\"#translate\").submit(async e => {\n  e.preventDefault();\n  const text = $(\".text\").text();\n  const spanish = await translate(text, { to: \"es\" });\n  alert(spanish);\n});\n\n// Node.js; serverjs.io example for demonstration purposes\nconst route = async ctx => {\n  const spanish = await translate(ctx.body, { to: \"es\" });\n  return send(spanish);\n};\n```\n\n## Authors and thanks\n\nCurrent package and development: [Francisco Presencia](https://francisco.io/)\n\nOriginal package and idea: Andrew Lunny (alunny), Marak Squires, Google\n\nTesting in Internet Explorer supported by BrowserStack:\n\n[![BrowserStack logo](https://i.imgur.com/CuCuOkL.png)](https://browserstack.com/)\n","_attachments":{},"homepage":"https://github.com/franciscop/translate#readme","bugs":{"url":"https://github.com/franciscop/translate/issues"},"license":"MIT"}