{"_id":"@paulcbetts/cld","_rev":"4-49f674c8379767a2544c066d37481884","name":"@paulcbetts/cld","description":"Language detection for Javascript. Based on the CLD2 (Compact Language Detector) library from Google. Highly optimized for space and speed. Runs about 10x faster than other libraries. Detects over 160 languages. Full test coverage. Runs on Linux, OS X, an","dist-tags":{"latest":"2.4.6"},"versions":{"2.4.5":{"name":"@paulcbetts/cld","description":"Language detection for Javascript. Based on the CLD2 (Compact Language Detector) library from Google. Highly optimized for space and speed. Runs about 10x faster than other libraries. Detects over 160 languages. Full test coverage. Runs on Linux, OS X, an","keywords":["language","detect","language detection","cld","cld2"],"version":"2.4.5","main":"./index","dependencies":{"glob":"^5.0.10","nan":"^2.0.5","rimraf":"^2.4.0","underscore":"^1.6.0"},"scripts":{"test":"node test/runner.js","postinstall":"node bin/postinstall.js","install":"node-gyp rebuild"},"author":{"name":"Blagovest Dachev","email":"blago@dachev.com","url":"http://www.dachev.com"},"contributors":[{"name":"Lovell Fuller","email":"npm@lovell.info"}],"repository":{"type":"git","url":"git://github.com/dachev/cld.git"},"licenses":[{"type":"Apache","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"engines":{"node":">=0.10.0","iojs":">=1.0.0"},"gypfile":true,"gitHead":"9659f03bf32e4a93d1032554dbbff7686c08cfef","bugs":{"url":"https://github.com/dachev/cld/issues"},"homepage":"https://github.com/dachev/cld#readme","_id":"@paulcbetts/cld@2.4.5","_shasum":"7cd7aa49bcf60d31c2f7d806f7700b39a8c4af62","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"paulcbetts","email":"paul@paulbetts.org"},"maintainers":[{"name":"paulcbetts","email":"paul@paulbetts.org"}],"dist":{"shasum":"7cd7aa49bcf60d31c2f7d806f7700b39a8c4af62","tarball":"https://registry.npmjs.org/@paulcbetts/cld/-/cld-2.4.5.tgz","integrity":"sha512-NdzLnKi1KOvyi3cusdUM9OXtMf9tn1TMLh/JB0A2pQAks3X6DBEcVOOjBYR68ePv+P/q9LWdLIXWNQtE6wdZxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcYTjtz90maC0Fo58kYgsveFpxAedUAr353uHEaZ8rTwIhAOyEYI6YCzIJpyQhRyuELFbdLLDD+7kYPqdEpBLfct8f"}]}},"2.4.6":{"name":"@paulcbetts/cld","description":"Language detection for Javascript. Based on the CLD2 (Compact Language Detector) library from Google. Highly optimized for space and speed. Runs about 10x faster than other libraries. Detects over 160 languages. Full test coverage. Runs on Linux, OS X, an","keywords":["language","detect","language detection","cld","cld2"],"version":"2.4.6","main":"./index","dependencies":{"glob":"^5.0.10","nan":"^2.0.5","rimraf":"^2.4.0","underscore":"^1.6.0"},"scripts":{"test":"node test/runner.js","postinstall":"node bin/postinstall.js","install":"node-gyp rebuild"},"author":{"name":"Blagovest Dachev","email":"blago@dachev.com","url":"http://www.dachev.com"},"contributors":[{"name":"Lovell Fuller","email":"npm@lovell.info"}],"repository":{"type":"git","url":"git://github.com/dachev/cld.git"},"licenses":[{"type":"Apache","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"engines":{"node":">=0.10.0","iojs":">=1.0.0"},"gypfile":true,"gitHead":"181870240919d98438e75dbeb6eaad8992a0d4c8","bugs":{"url":"https://github.com/dachev/cld/issues"},"homepage":"https://github.com/dachev/cld#readme","_id":"@paulcbetts/cld@2.4.6","_shasum":"a992f6bc43cab212ac2c4488a671cf302f8b62e7","_from":".","_npmVersion":"3.9.2","_nodeVersion":"6.2.0","_npmUser":{"name":"paulcbetts","email":"paul@paulbetts.org"},"dist":{"shasum":"a992f6bc43cab212ac2c4488a671cf302f8b62e7","tarball":"https://registry.npmjs.org/@paulcbetts/cld/-/cld-2.4.6.tgz","integrity":"sha512-W2HanaEtfj4VI8iQXC0M9mCU1Oeaso0VJU0rR/zJ1LS5R5IlgjP37qwFBWhh8rTkNoOwkh6pFeX4BV/ba6MmCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDl1LaYDeungksCZ1vRLSSeMaMOSy16/JiXYOyU76XSIwIgDDPhL4pr0cmf+DAG4WvWjDOSBNpd8rbAVAxtVjRkd+o="}]},"maintainers":[{"name":"paulcbetts","email":"paul@paulbetts.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cld-2.4.6.tgz_1471536624228_0.15114858490414917"}}},"readme":"# node-cld\r\n[![Build Status](https://secure.travis-ci.org/dachev/node-cld.png)](http://travis-ci.org/#!/dachev/node-cld)\r\n[![Dependencies](https://david-dm.org/dachev/node-cld.png)](https://david-dm.org/dachev/node-cld)\r\n[![NPM version](https://badge.fury.io/js/cld.svg)](http://badge.fury.io/js/cld)\r\n\r\nLanguage detection for Javascript. Based on the CLD2 (Compact Language Detector) library from Google.\r\n\r\nHighly optimized for space and speed. Runs about 10x faster than other libraries. Detects over 160 languages. Full test coverage. Runs on Linux, OS X, and Windows.\r\n\r\n## Installation\r\n\r\n```bash\r\n$ npm install cld\r\n```\r\n\r\nLinux users, make sure you have g++ >= 4.8. If this is not an option, you should be able to install node-cld 2.4.4 even with an older g++ build.\r\n\r\n## Examples\r\n### Simple\r\n```js\r\nrequire('cld').detect('This is a language recognition example', function(err, result) {\r\n  console.log(result);\r\n});\r\n```\r\n\r\n### Advanced\r\n```js\r\nvar text    = 'Това е пример за разпознаване на Български език';\r\nvar options = {\r\n  isHTML       : false,\r\n  languageHint : 'BULGARIAN',\r\n  encodingHint : 'ISO_8859_5',\r\n  tldHint      : 'bg',\r\n  httpHint     : 'bg'\r\n};\r\n\r\nrequire('cld').detect(text, options, function(err, result) {\r\n  console.log(result);\r\n});\r\n```\r\n\r\n\r\n## Options\r\n\r\n#### isHTML\r\n\r\nSet to true if the string contains HTML tags\r\n\r\n#### languageHint\r\n\r\nPass a LANGUAGES key or value as a hint\r\n\r\n#### encodingHint\r\n\r\nPass an ENCODINGS value as a hint\r\n\r\n#### tldHint\r\n\r\nPass top level domain as a hint\r\n\r\n#### httpHint\r\n\r\nPass an HTTP \"Content-Encoding\" value as a hint\r\n\r\n## Warning\r\nOnce the module has been installed, the underlying C source will remain in the ```deps/cld``` folder and continue to occupy considerable space. If you are under severe constraints you can delete this folder and reclam >100M\r\n\r\n## Copyright\r\nCopyright 2011-2015, Blagovest Dachev.\r\n\r\n## License\r\nApache 2\r\n","maintainers":[{"name":"paulcbetts","email":"paul@paulbetts.org"}],"time":{"modified":"2022-06-12T22:30:41.331Z","created":"2015-09-09T19:50:54.553Z","2.4.5":"2015-09-09T19:50:54.553Z","2.4.6":"2016-08-18T16:10:24.896Z"},"homepage":"https://github.com/dachev/cld#readme","keywords":["language","detect","language detection","cld","cld2"],"repository":{"type":"git","url":"git://github.com/dachev/cld.git"},"contributors":[{"name":"Lovell Fuller","email":"npm@lovell.info"}],"author":{"name":"Blagovest Dachev","email":"blago@dachev.com","url":"http://www.dachev.com"},"bugs":{"url":"https://github.com/dachev/cld/issues"},"readmeFilename":"README.md"}