{"_id":"rtl-detect","_rev":"3270237","name":"rtl-detect","description":"Library will help you to detect if the locale is right-to-left language.","dist-tags":{"latest":"1.1.2"},"maintainers":[{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"}],"time":{"modified":"2024-03-21T10:07:55.000Z","created":"2015-02-03T19:49:12.901Z","1.1.2":"2023-10-24T06:23:13.405Z","1.1.1":"2023-10-24T05:55:47.318Z","1.1.0":"2023-10-24T05:20:44.065Z","1.0.4":"2021-07-15T17:49:23.439Z","1.0.3":"2021-05-10T14:28:45.470Z","1.0.2":"2017-12-19T00:20:32.268Z","1.0.1":"2017-12-18T23:19:30.502Z","1.0.0":"2015-02-03T19:49:12.901Z"},"users":{},"author":{"name":"Shadi Abu Hilal","email":"shadiabuhilal@gmail.com","url":"http://github.com/shadiabuhilal"},"repository":{"type":"git","url":"git+https://github.com/shadiabuhilal/rtl-detect.git"},"versions":{"1.1.2":{"name":"rtl-detect","version":"1.1.2","description":"Library will help you to detect if the locale is right-to-left language.","main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"jest --coverage","commit":"git-cz"},"jest":{"verbose":true},"repository":{"type":"git","url":"git+https://github.com/shadiabuhilal/rtl-detect.git"},"keywords":["rtl-detect","rtl-detect","locale direction","locale dir","locale","intl direction","intl dir","intl","right-to-left","left-to-right","rtl","ltr","intl-lang"],"author":{"name":"Shadi Abu Hilal","email":"shadiabuhilal@gmail.com","url":"http://github.com/shadiabuhilal"},"license":"BSD-3-Clause","homepage":"https://github.com/shadiabuhilal/rtl-detect","bugs":{"url":"https://github.com/shadiabuhilal/rtl-detect/issues"},"licenses":[{"type":"BSD-3-Clause","url":"https://github.com/shadiabuhilal/rtl-detect/blob/master/LICENSE.md"}],"devDependencies":{"@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/release-notes-generator":"^12.0.0","commitizen":"^4.3.0","cz-conventional-changelog":"^3.3.0","eslint":"^7.26.0","jest":"^26.6.3","semantic-release":"^22.0.5"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"_id":"rtl-detect@1.1.2","gitHead":"ca1f7e94b55bed42bcbb1d234ee0eba153d0a342","_nodeVersion":"20.8.1","_npmVersion":"10.2.1","dist":{"shasum":"ca7f0330af5c6bb626c15675c642ba85ad6273c6","size":6844,"noattachment":false,"key":"/rtl-detect/-/rtl-detect-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rtl-detect/download/rtl-detect-1.1.2.tgz"},"_npmUser":{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"},"directories":{},"maintainers":[{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rtl-detect_1.1.2_1698128593182_0.29378226478210645"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-24T06:23:13.405Z","publish_time":1698128593405,"_source_registry_name":"default","_cnpm_publish_time":1698128593405},"1.1.1":{"name":"rtl-detect","version":"1.1.1","description":"Library will help you to detect if the locale is right-to-left language.","main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"jest --coverage","commit":"git-cz"},"jest":{"verbose":true},"repository":{"type":"git","url":"git+https://github.com/shadiabuhilal/rtl-detect.git"},"keywords":["rtl-detect","rtl-detect","locale direction","locale dir","locale","intl direction","intl dir","intl","right-to-left","left-to-right","rtl","ltr","intl-lang"],"author":{"name":"Shadi Abu Hilal","email":"shadiabuhilal@gmail.com","url":"http://github.com/shadiabuhilal"},"license":"BSD-3-Clause","homepage":"https://github.com/shadiabuhilal/rtl-detect","bugs":{"url":"https://github.com/shadiabuhilal/rtl-detect/issues"},"licenses":[{"type":"BSD-3-Clause","url":"https://github.com/shadiabuhilal/rtl-detect/blob/master/LICENSE.md"}],"devDependencies":{"@semantic-release/changelog":"^6.0.3","@semantic-release/release-notes-generator":"^12.0.0","commitizen":"^4.3.0","cz-conventional-changelog":"^3.3.0","eslint":"^7.26.0","jest":"^26.6.3","semantic-release":"^22.0.5"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"_id":"rtl-detect@1.1.1","gitHead":"c7c0c5610ad3f0232b658428f5f50804ce01b37c","_nodeVersion":"20.8.1","_npmVersion":"10.2.1","dist":{"shasum":"3db3fa5ce5348b675787198c2c538478d2439849","size":6835,"noattachment":false,"key":"/rtl-detect/-/rtl-detect-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rtl-detect/download/rtl-detect-1.1.1.tgz"},"_npmUser":{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"},"directories":{},"maintainers":[{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rtl-detect_1.1.1_1698126947111_0.22599996978123182"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-24T05:55:47.318Z","publish_time":1698126947318,"_source_registry_name":"default","_cnpm_publish_time":1698126947318},"1.1.0":{"name":"rtl-detect","version":"1.1.0","description":"Library will help you to detect if the locale is right-to-left language.","main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"jest --coverage"},"jest":{"verbose":true},"repository":{"type":"git","url":"git+https://github.com/shadiabuhilal/rtl-detect.git"},"keywords":["rtl-detect","rtl-detect","locale direction","locale dir","locale","intl direction","intl dir","intl","right-to-left","left-to-right","rtl","ltr","intl-lang"],"author":{"name":"Shadi Abu Hilal","email":"shadiabuhilal@gmail.com","url":"http://github.com/shadiabuhilal"},"license":"BSD-3-Clause","homepage":"https://github.com/shadiabuhilal/rtl-detect","bugs":{"url":"https://github.com/shadiabuhilal/rtl-detect/issues"},"licenses":[{"type":"BSD-3-Clause","url":"https://github.com/shadiabuhilal/rtl-detect/blob/master/LICENSE.md"}],"devDependencies":{"@semantic-release/changelog":"^6.0.3","@semantic-release/release-notes-generator":"^12.0.0","eslint":"^7.26.0","jest":"^26.6.3","semantic-release":"^22.0.5"},"_id":"rtl-detect@1.1.0","gitHead":"62429455d2eb3f8d43cdc023bcb7e7ae668e2519","_nodeVersion":"20.8.1","_npmVersion":"10.2.1","dist":{"shasum":"5120f2bb8181fa108c435d905d9f7573a3728e0f","size":6750,"noattachment":false,"key":"/rtl-detect/-/rtl-detect-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rtl-detect/download/rtl-detect-1.1.0.tgz"},"_npmUser":{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"},"directories":{},"maintainers":[{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rtl-detect_1.1.0_1698124843776_0.5458703536277685"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-24T05:20:44.065Z","publish_time":1698124844065,"_source_registry_name":"default","_cnpm_publish_time":1698124844065},"1.0.4":{"name":"rtl-detect","version":"1.0.4","description":"Library will help you to detect if the locale is right-to-left language.","main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"jest --coverage"},"jest":{"verbose":true},"repository":{"type":"git","url":"git+https://github.com/shadiabuhilal/rtl-detect.git"},"keywords":["rtl-detect","rtl-detect","locale direction","locale dir","locale","intl direction","intl dir","intl","right-to-left","left-to-right","rtl","ltr","intl-lang"],"author":{"name":"Shadi Abu Hilal","email":"shadiabuhilal@gmail.com","url":"http://github.com/shadiabuhilal"},"license":"BSD-3-Clause","homepage":"https://github.com/shadiabuhilal/rtl-detect","bugs":{"url":"https://github.com/shadiabuhilal/rtl-detect/issues"},"licenses":[{"type":"BSD-3-Clause","url":"https://github.com/shadiabuhilal/rtl-detect/blob/master/LICENSE.md"}],"devDependencies":{"eslint":"^7.26.0","jest":"^26.6.3"},"gitHead":"277e33505c1a59ab0b4e760be9c133bfabba5fa7","_id":"rtl-detect@1.0.4","_nodeVersion":"12.18.3","_npmVersion":"7.12.0","dist":{"shasum":"40ae0ea7302a150b96bc75af7d749607392ecac6","size":5518,"noattachment":false,"key":"/rtl-detect/-/rtl-detect-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/rtl-detect/download/rtl-detect-1.0.4.tgz"},"_npmUser":{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"},"directories":{},"maintainers":[{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rtl-detect_1.0.4_1626371363331_0.06503192979585148"},"_hasShrinkwrap":false,"publish_time":1626371363439,"_cnpm_publish_time":1626371363439},"1.0.3":{"name":"rtl-detect","version":"1.0.3","description":"Library will help you to detect if the locale is right-to-left language.","main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"jest --coverage"},"jest":{"verbose":true},"repository":{"type":"git","url":"git+https://github.com/shadiabuhilal/rtl-detect.git"},"keywords":["rtl-detect","rtl-detect","locale direction","locale dir","locale","intl direction","intl dir","intl","right-to-left","left-to-right","rtl","ltr","intl-lang"],"author":{"name":"Shadi Abu Hilal","email":"shadiabuhilal@gmail.com","url":"http://github.com/shadiabuhilal"},"license":"BSD-3-Clause","homepage":"https://github.com/shadiabuhilal/rtl-detect","bugs":{"url":"https://github.com/shadiabuhilal/rtl-detect/issues"},"licenses":[{"type":"BSD-3-Clause","url":"https://github.com/shadiabuhilal/rtl-detect/blob/master/LICENSE.md"}],"devDependencies":{"eslint":"^7.26.0","jest":"^26.6.3"},"gitHead":"4d9da5a7c3b9d1667954fe4c5a42d418365646a8","_id":"rtl-detect@1.0.3","_nodeVersion":"12.18.3","_npmVersion":"7.12.0","dist":{"shasum":"42145b9a4f9cf0b94c4542aba90d57f0d18559bf","size":5457,"noattachment":false,"key":"/rtl-detect/-/rtl-detect-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/rtl-detect/download/rtl-detect-1.0.3.tgz"},"_npmUser":{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"},"directories":{},"maintainers":[{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rtl-detect_1.0.3_1620656925359_0.2806713622415853"},"_hasShrinkwrap":false,"publish_time":1620656925470,"_cnpm_publish_time":1620656925470},"1.0.2":{"name":"rtl-detect","version":"1.0.2","description":"Library will help you to detect if the locale is right-to-left language.","main":"index.js","scripts":{"lint":"grunt eslint","test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/shadiabuhilal/rtl-detect.git"},"keywords":["rtl-detect","rtl-detect","locale direction","locale dir","locale","intl direction","intl dir","intl","right-to-left","left-to-right","rtl","ltr","intl-lang"],"author":{"name":"Shadi Abu Hilal","email":"shadiabuhilal@gmail.com","url":"http://github.com/shadiabuhilal"},"license":"BSD-3-Clause","homepage":"https://github.com/shadiabuhilal/rtl-detect","bugs":{"url":"https://github.com/shadiabuhilal/rtl-detect/issues"},"licenses":[{"type":"BSD-3-Clause","url":"https://github.com/shadiabuhilal/rtl-detect/blob/master/LICENSE.md"}],"dependencies":{},"devDependencies":{"chai":"^4.1.2","eslint-plugin-require-jsdoc":"^1.0.4","grunt":"^1.0.1","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-eslint":"^20.1.0","istanbul":"^0.4.5","mocha":"^4.0.1"},"gitHead":"2eed8a33276461a24e7033d1d3a115ee64aee3f5","_id":"rtl-detect@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.6.0","_npmUser":{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"},"dist":{"shasum":"8eca316f5c6563d54df4e406171dd7819adda67f","size":6649,"noattachment":false,"key":"/rtl-detect/-/rtl-detect-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rtl-detect/download/rtl-detect-1.0.2.tgz"},"maintainers":[{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rtl-detect-1.0.2.tgz_1513642832188_0.10527504701167345"},"directories":{},"publish_time":1513642832268,"_hasShrinkwrap":false,"_cnpm_publish_time":1513642832268},"1.0.1":{"name":"rtl-detect","version":"1.0.1","description":"Library will help you to detect if the locale is right-to-left language.","main":"index.js","scripts":{"lint":"grunt eslint","test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/shadiabuhilal/rtl-detect.git"},"keywords":["rtl-detect","rtl-detect","locale direction","locale dir","locale","intl direction","intl dir","intl","right-to-left","left-to-right","rtl","ltr","intl-lang"],"author":{"name":"Shadi Abu Hilal","email":"shadiabuhilal@gmail.com","url":"http://github.com/shadiabuhilal"},"license":"BSD-3-Clause","homepage":"https://github.com/shadiabuhilal/rtl-detect","bugs":{"url":"https://github.com/shadiabuhilal/rtl-detect/issues"},"licenses":[{"type":"BSD-3-Clause","url":"https://github.com/shadiabuhilal/rtl-detect/blob/master/LICENSE.md"}],"dependencies":{},"devDependencies":{"chai":"^4.1.2","eslint-plugin-require-jsdoc":"^1.0.4","grunt":"^1.0.1","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-eslint":"^20.1.0","istanbul":"^0.4.5","mocha":"^4.0.1"},"gitHead":"9dead49190b99b7b1e2747ea541dd3787fec7b04","_id":"rtl-detect@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.6.0","_npmUser":{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"},"dist":{"shasum":"9334c794aa8c67de0db70618f1b50c847d95957b","size":6626,"noattachment":false,"key":"/rtl-detect/-/rtl-detect-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rtl-detect/download/rtl-detect-1.0.1.tgz"},"maintainers":[{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rtl-detect-1.0.1.tgz_1513639170414_0.9997990606352687"},"directories":{},"publish_time":1513639170502,"_hasShrinkwrap":false,"_cnpm_publish_time":1513639170502},"1.0.0":{"name":"rtl-detect","version":"1.0.0","description":"Library will help you to detect if the locale is right-to-left language.","main":"index.js","scripts":{"jshint":"grunt jshint","test":"grunt test"},"repository":{"type":"git","url":"https://github.com/shadiabuhilal/rtl-detect.git"},"keywords":["rtl-detect","rtl-detect","locale direction","locale dir","locale","intl direction","intl dir","intl","right-to-left","left-to-right","rtl","ltr","intl-lang"],"author":{"name":"Shadi Abu Hilal","email":"shadiabuhilal@gmail.com","url":"http://github.com/shadiabuhilal"},"license":"BSD-3-Clause","homepage":"https://github.com/shadiabuhilal/rtl-detect","bugs":{"url":"https://github.com/shadiabuhilal/rtl-detect/issues"},"licenses":[{"type":"BSD-3-Clause","url":"https://github.com/shadiabuhilal/rtl-detect/blob/master/LICENSE.md"}],"dependencies":{},"devDependencies":{"chai":"^1.10.0","grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-contrib-clean":"^0.6.0","grunt-contrib-jshint":"^0.10.0","istanbul":"^0.3.5","jshint-stylish":"^1.0.0","mocha":"^2.1.0"},"gitHead":"e9e40b8aedc3ba17b1114b057b41b11af491ce08","_id":"rtl-detect@1.0.0","_shasum":"f8b77b5e12d481ffb59462ac7f5f9107be4d4a22","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"},"maintainers":[{"name":"shadiabuhilal","email":"shadiabuhilal@gmail.com"}],"dist":{"shasum":"f8b77b5e12d481ffb59462ac7f5f9107be4d4a22","size":7950,"noattachment":false,"key":"/rtl-detect/-/rtl-detect-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rtl-detect/download/rtl-detect-1.0.0.tgz"},"directories":{},"publish_time":1422992952901,"_cnpm_publish_time":1422992952901,"_hasShrinkwrap":false}},"readme":"# rtl-detect\n![Build Status](https://github.com/shadiabuhilal/rtl-detect/actions/workflows/push-workflows.yml/badge.svg)\n\nThis library will help you to detect if the locale is right-to-left language or not.\n\n\n\n## Usage\n\n### require rtl-detect lib\n```js\nvar rtlDetect = require('rtl-detect');\n```\n\n### isRtlLang\nThis function will check if the locale is right-to-left language or not.\n\nExamples:\n\n```js\nvar isRtl = rtlDetect.isRtlLang('ar-JO');\n// isRtl will be true\n```\n\n```js\nvar isRtl = rtlDetect.isRtlLang('ar_JO');\n// isRtl will be true\n```\n\n```js\nvar isRtl = rtlDetect.isRtlLang('ar');\n// isRtl will be true\n```\n\n```js\nvar isRtl = rtlDetect.isRtlLang('en-US');\n// isRtl will be false\n```\n\n### getLangDir\nThis function will get language direction for the locale.\n\nExamples:\n\n```js\nvar langDir = rtlDetect.getLangDir('ar-JO');\n// langDir will be 'rtl'\n```\n\n```js\nvar langDir = rtlDetect.getLangDir('ar_JO');\n// langDir will be 'rtl'\n```\n\n```js\nvar langDir = rtlDetect.getLangDir('ar');\n// langDir will be 'rtl'\n```\n\n```js\nvar langDir = rtlDetect.getLangDir('en-US');\n// langDir will be 'ltr'\n```\n\nCopyright 2015, Yahoo! Inc.\n","_attachments":{},"homepage":"https://github.com/shadiabuhilal/rtl-detect","bugs":{"url":"https://github.com/shadiabuhilal/rtl-detect/issues"},"license":"BSD-3-Clause"}