{"_id":"ismobilejs","_rev":"352745","name":"ismobilejs","description":"A simple JS library that detects mobile devices.","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"time":{"modified":"2021-07-13T08:04:24.000Z","created":"2014-07-03T20:25:30.838Z","1.1.1":"2020-04-14T22:15:31.289Z","1.1.0":"2020-04-12T07:24:20.934Z","1.0.4":"2020-04-11T04:34:44.677Z","1.0.3":"2019-09-11T05:42:07.655Z","1.0.2":"2019-08-19T04:28:34.569Z","1.0.1":"2019-08-11T04:15:57.524Z","1.0.0":"2019-08-11T03:42:54.613Z","0.5.2":"2019-05-19T19:08:33.909Z","0.5.1":"2018-11-12T04:55:40.420Z","0.5.0":"2018-11-12T03:52:39.272Z","0.4.1":"2017-03-18T18:18:46.118Z","0.4.0":"2016-03-04T02:42:33.243Z","0.3.9":"2015-07-16T21:27:36.327Z","0.3.8":"2015-07-05T02:54:32.823Z","0.3.7":"2015-07-04T22:35:09.924Z","0.3.5":"2014-11-20T05:57:27.252Z","0.3.4":"2014-10-31T20:11:49.408Z","0.3.3":"2014-07-03T20:25:30.838Z"},"users":{"jkramp":true,"sternelee":true,"shawndsouza":true,"jream":true,"shay-altman":true},"author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"versions":{"1.1.1":{"name":"ismobilejs","publishConfig":{"access":"public"},"version":"1.1.1","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"MIT","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"cjs/index.js","module":"esm/index.js","jsdelivr":"dist/isMobile.min.js","types":"types","scripts":{"prebuild":"rm -rf cjs esm dist","build":"yarn build:library && yarn build:browser","build:library":"web-scripts build","build:browser":"parcel build --target browser --experimental-scope-hoisting --global isMobile --out-file isMobile.min.js src/index.browser.ts","test":"jest","format":"web-scripts format","lint":"web-scripts lint","commit":"web-scripts commit","release":"web-scripts release","prepare":"web-scripts audit"},"husky":{"hooks":{"pre-commit":"web-scripts precommit --jest-config ./jest.config.js","commit-msg":"web-scripts commitmsg"}},"devDependencies":{"@spotify/web-scripts":"^6.2.0","@types/puppeteer":"^2.0.1","husky":"^4.2.5","jest-puppeteer":"^4.4.0","parcel-bundler":"^1.12.4","puppeteer":"^2.1.1","ts-jest":"^25.3.1"},"gitHead":"5cc13e5e237ae906d772a0173298b82a10e51a38","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@1.1.1","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"c56ca0ae8e52b24ca0f22ba5ef3215a2ddbbaa0e","size":14031,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-1.1.1.tgz"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ismobilejs_1.1.1_1586902531057_0.8538083062046404"},"_hasShrinkwrap":false,"publish_time":1586902531289,"_cnpm_publish_time":1586902531289},"1.1.0":{"name":"ismobilejs","publishConfig":{"access":"public"},"version":"1.1.0","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"MIT","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"cjs/index.js","module":"esm/index.js","jsdelivr":"dist/isMobile.min.js","types":"types","scripts":{"prebuild":"rm -rf cjs esm dist","build":"yarn build:library && yarn build:browser","build:library":"web-scripts build","build:browser":"parcel build --target browser --experimental-scope-hoisting --global isMobile --out-file isMobile.min.js src/index.browser.ts","test":"jest","format":"web-scripts format","lint":"web-scripts lint","commit":"web-scripts commit","release":"web-scripts release","prepare":"web-scripts audit"},"husky":{"hooks":{"pre-commit":"web-scripts precommit --jest-config ./jest.config.js","commit-msg":"web-scripts commitmsg"}},"devDependencies":{"@spotify/web-scripts":"^6.2.0","@types/puppeteer":"^2.0.1","husky":"^4.2.5","jest-puppeteer":"^4.4.0","parcel-bundler":"^1.12.4","puppeteer":"^2.1.1","ts-jest":"^25.3.1"},"gitHead":"1e078b99dd375984bcd00cac3ba27e18a9de2956","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@1.1.0","_nodeVersion":"12.14.1","_npmVersion":"6.14.4","dist":{"shasum":"d37ceeac14905d55063cdcae2955688c170f3d5e","size":13897,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-1.1.0.tgz"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ismobilejs_1.1.0_1586676260695_0.8314773654835679"},"_hasShrinkwrap":false,"publish_time":1586676260934,"_cnpm_publish_time":1586676260934},"1.0.4":{"name":"ismobilejs","publishConfig":{"access":"public"},"version":"1.0.4","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"MIT","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"cjs/index.js","module":"esm/index.js","jsdelivr":"dist/isMobile.min.js","types":"types","scripts":{"prebuild":"rm -rf cjs esm dist","build":"yarn build:library && yarn build:browser","build:library":"web-scripts build","build:browser":"parcel build --target browser --experimental-scope-hoisting --global isMobile --out-file isMobile.min.js src/index.browser.ts","test":"jest","format":"web-scripts format","lint":"web-scripts lint","commit":"web-scripts commit","release":"web-scripts release","prepare":"web-scripts audit"},"husky":{"hooks":{"pre-commit":"web-scripts precommit --jest-config ./jest.config.js","commit-msg":"web-scripts commitmsg"}},"devDependencies":{"@spotify/web-scripts":"^6.2.0","@types/puppeteer":"^2.0.1","husky":"^4.2.5","jest-puppeteer":"^4.4.0","parcel-bundler":"^1.12.4","puppeteer":"^2.1.1","ts-jest":"^25.3.1"},"gitHead":"8cb7f7d54b865bd0f0e3b3d1de9577649938c927","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@1.0.4","_nodeVersion":"12.14.1","_npmVersion":"6.14.4","dist":{"shasum":"88730dddcb44f7ea58ae0692e8e17c8e68e3e735","size":12306,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-1.0.4.tgz"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ismobilejs_1.0.4_1586579684501_0.5918465577465302"},"_hasShrinkwrap":false,"publish_time":1586579684677,"_cnpm_publish_time":1586579684677},"1.0.3":{"name":"ismobilejs","publishConfig":{"access":"public"},"version":"1.0.3","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"MIT","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"cjs/index.js","module":"esm/index.js","jsdelivr":"dist/isMobile.min.js","types":"types","scripts":{"prebuild":"rm -rf cjs esm dist","build":"yarn build:library && yarn build:browser","build:library":"web-scripts build","build:browser":"parcel build --target browser --experimental-scope-hoisting --global isMobile --out-file isMobile.min.js src/index.browser.ts","test":"jest","lint":"web-scripts lint","commit":"web-scripts commit","release":"web-scripts release"},"husky":{"hooks":{"pre-commit":"web-scripts precommit --jest-config ./jest.config.js","commit-msg":"web-scripts commitmsg"}},"devDependencies":{"@spotify/web-scripts":"^1.2.0","@types/puppeteer":"^1.19.1","husky":"^3.0.3","jest-puppeteer":"^4.3.0","parcel-bundler":"^1.12.3","puppeteer":"^1.19.0","ts-jest":"^24.0.2"},"gitHead":"6e31696883ed43afa8cd5f0257a9d965d984ebd3","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@1.0.3","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"shasum":"69ec3faccd17dfeeadd471e70955d1e192a46eb6","size":11722,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-1.0.3.tgz"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ismobilejs_1.0.3_1568180527530_0.5156003908172759"},"_hasShrinkwrap":false,"publish_time":1568180527655,"_cnpm_publish_time":1568180527655},"1.0.2":{"name":"ismobilejs","publishConfig":{"access":"public"},"version":"1.0.2","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"MIT","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"cjs/index.js","module":"esm/index.js","jsdelivr":"dist/isMobile.min.js","types":"types","scripts":{"prebuild":"rm -rf cjs esm dist","build":"yarn build:library && yarn build:browser","build:library":"web-scripts build","build:browser":"parcel build --target browser --experimental-scope-hoisting --out-file isMobile.min.js src/index.browser.ts","test":"web-scripts test","lint":"web-scripts lint","commit":"web-scripts commit","release":"web-scripts release"},"husky":{"hooks":{"pre-commit":"web-scripts precommit","commit-msg":"web-scripts commitmsg"}},"devDependencies":{"@spotify/web-scripts":"^1.2.0","husky":"^3.0.3","parcel-bundler":"^1.12.3"},"gitHead":"496da64f3f0d43cfb08dc760b5f26c279e635320","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@1.0.2","_nodeVersion":"10.16.3","_npmVersion":"6.10.3","dist":{"shasum":"ad31e7fe8ac49e2a9b841fbaa769ade63f7345b2","size":10947,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-1.0.2.tgz"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ismobilejs_1.0.2_1566188914347_0.9931507446906218"},"_hasShrinkwrap":false,"publish_time":1566188914569,"_cnpm_publish_time":1566188914569},"1.0.1":{"name":"ismobilejs","publishConfig":{"access":"public"},"version":"1.0.1","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"MIT","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"cjs/index.js","module":"esm/index.js","browser":"dist/isMobile.min.js","types":"types","scripts":{"prebuild":"rm -rf cjs esm dist","build":"yarn build:library && yarn build:browser","build:library":"web-scripts build","build:browser":"parcel build --target browser --experimental-scope-hoisting --out-file isMobile.min.js src/index.browser.ts","test":"web-scripts test","lint":"web-scripts lint","commit":"web-scripts commit","release":"web-scripts release"},"husky":{"hooks":{"pre-commit":"web-scripts precommit","commit-msg":"web-scripts commitmsg"}},"devDependencies":{"@spotify/web-scripts":"^1.2.0","husky":"^3.0.3","parcel-bundler":"^1.12.3"},"gitHead":"69c49dbbc5d045a788d31823b99f7f7f03d8a751","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@1.0.1","_nodeVersion":"10.16.2","_npmVersion":"6.10.3","dist":{"shasum":"28fe7576fd205b221e18bbab26db89a50f247e3c","size":10947,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-1.0.1.tgz"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ismobilejs_1.0.1_1565496957274_0.6206900843715346"},"_hasShrinkwrap":false,"publish_time":1565496957524,"_cnpm_publish_time":1565496957524},"1.0.0":{"name":"ismobilejs","publishConfig":{"access":"public"},"version":"1.0.0","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"MIT","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"cjs/index.js","module":"esm/index.js","browser":"dist/isMobile.min.js","types":"types","scripts":{"prebuild":"rm -rf cjs esm dist","build":"yarn build:library && yarn build:browser","build:library":"web-scripts build","build:browser":"parcel build --target browser --experimental-scope-hoisting --out-file isMobile.min.js src/index.browser.ts","test":"web-scripts test","lint":"web-scripts lint","commit":"web-scripts commit","release":"web-scripts release"},"husky":{"hooks":{"pre-commit":"web-scripts precommit","commit-msg":"web-scripts commitmsg"}},"devDependencies":{"@spotify/web-scripts":"^1.2.0","husky":"^3.0.3","parcel-bundler":"^1.12.3"},"gitHead":"e8fb4b2e7b35102ae6e4efd7467f5f81fde29b19","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@1.0.0","_nodeVersion":"10.16.2","_npmVersion":"6.10.3","dist":{"shasum":"597928712c23e8d8d6bc155ba23ce01fed586898","size":8853,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-1.0.0.tgz"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ismobilejs_1.0.0_1565494974445_0.927863230289566"},"_hasShrinkwrap":false,"publish_time":1565494974613,"_cnpm_publish_time":1565494974613},"0.5.2":{"name":"ismobilejs","version":"0.5.2","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"MIT","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"./src/isMobile.js","browser":"./dist/isMobile.min.js","scripts":{"test":"jest","clean":"rm -f ./dist/isMobile.min.js","build":"npm run clean && uglifyjs src/isMobile.js -o dist/isMobile.min.js -c -m"},"jest":{"testEnvironment":"node"},"devDependencies":{"eslint":"^5.16.0","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","prettier":"^1.17.1","uglify-js":"^3.5.13"},"gitHead":"6a7d5d0ab445007b32415d1050966ff2070adb6b","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@0.5.2","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"shasum":"e81bacf6187c532ad8348355f4fecd6e6adfdce1","size":8408,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-0.5.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-0.5.2.tgz"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ismobilejs_0.5.2_1558292913761_0.10512764861827151"},"_hasShrinkwrap":false,"publish_time":1558292913909,"_cnpm_publish_time":1558292913909},"0.5.1":{"name":"ismobilejs","version":"0.5.1","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"CC0-1.0","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"./src/isMobile.js","browser":"./dist/isMobile.min.js","scripts":{"test":"jest","clean":"rm -f dist/isMobile.min.js","build":"npm run clean && uglifyjs src/isMobile.js -o dist/isMobile.min.js -c -m"},"jest":{"testEnvironment":"node"},"devDependencies":{"jest":"^23.6.0","prettier":"^1.15.2","uglify-js":"^3.4.9"},"gitHead":"d03ba0353c95d77a6e9845f893d291967482973a","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@0.5.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"dist":{"shasum":"0e3f825e29e32f84ad5ddbb60e9e04a894046488","size":7544,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-0.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-0.5.1.tgz"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ismobilejs_0.5.1_1541998540263_0.38997617918419425"},"_hasShrinkwrap":false,"publish_time":1541998540420,"_cnpm_publish_time":1541998540420},"0.5.0":{"name":"ismobilejs","version":"0.5.0","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"CC0-1.0","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"./src/isMobile","scripts":{"test":"jest","clean":"rm -f dist/isMobile.min.js","build":"npm run clean && uglifyjs src/isMobile.js -o dist/isMobile.min.js -c -m"},"jest":{"testEnvironment":"node"},"devDependencies":{"jest":"^23.6.0","prettier":"^1.15.2","uglify-js":"^3.4.9"},"gitHead":"1aaae360a730e0232f0d9b2b82ad05f30158cb13","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@0.5.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"dist":{"shasum":"ff982a9215158dfac3a1dadb6d68d291e866d106","size":6771,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-0.5.0.tgz"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ismobilejs_0.5.0_1541994759089_0.016039003046332434"},"_hasShrinkwrap":false,"publish_time":1541994759272,"_cnpm_publish_time":1541994759272},"0.4.1":{"name":"ismobilejs","version":"0.4.1","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"CC0-1.0","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"./isMobile","devDependencies":{"grunt":"0.4.x","grunt-contrib-jshint":"0.11.x","grunt-contrib-uglify":"0.9.x","grunt-contrib-jasmine":"0.8.x"},"gitHead":"df39aec971a121a6b182a84d85a467e65073490b","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@0.4.1","scripts":{},"_shasum":"1a5f126c70fed39c93da380fa62cbae5723e7dc2","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"dist":{"shasum":"1a5f126c70fed39c93da380fa62cbae5723e7dc2","size":7524,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-0.4.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ismobilejs-0.4.1.tgz_1489861124105_0.6203527403995395"},"directories":{},"publish_time":1489861126118,"_cnpm_publish_time":1489861126118,"_hasShrinkwrap":false},"0.4.0":{"name":"ismobilejs","version":"0.4.0","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"CC0-1.0","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"./isMobile","devDependencies":{"grunt":"0.4.x","grunt-contrib-jshint":"0.11.x","grunt-contrib-uglify":"0.9.x","grunt-contrib-jasmine":"0.8.x"},"gitHead":"3b686b391590652f92108443d838fe222a604648","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@0.4.0","scripts":{},"_shasum":"7b986252118e552137f36e42c21794af6c91558f","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.5.0","_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"dist":{"shasum":"7b986252118e552137f36e42c21794af6c91558f","size":7453,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-0.4.0.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/ismobilejs-0.4.0.tgz_1457059350018_0.986163666471839"},"directories":{},"publish_time":1457059353243,"_cnpm_publish_time":1457059353243,"_hasShrinkwrap":false},"0.3.9":{"name":"ismobilejs","version":"0.3.9","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"CC0-1.0","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"./isMobile","devDependencies":{"grunt":"0.4.x","grunt-contrib-jshint":"0.11.x","grunt-contrib-uglify":"0.9.x","grunt-contrib-jasmine":"0.8.x"},"gitHead":"84c93a48e09506267241f9f33fd3ae97743f52db","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@0.3.9","scripts":{},"_shasum":"f1fd7948bf06bc266785dd05550cc16e81342f23","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"dist":{"shasum":"f1fd7948bf06bc266785dd05550cc16e81342f23","size":7475,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-0.3.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-0.3.9.tgz"},"directories":{},"publish_time":1437082056327,"_cnpm_publish_time":1437082056327,"_hasShrinkwrap":false},"0.3.8":{"name":"ismobilejs","version":"0.3.8","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"CC0-1.0","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"./isMobile","devDependencies":{"grunt":"0.4.x","grunt-contrib-jshint":"0.11.x","grunt-contrib-uglify":"0.9.x","grunt-contrib-jasmine":"0.8.x"},"gitHead":"f44fcfa6cfebffa6d3aa18b5e742df3f146acd7c","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@0.3.8","scripts":{},"_shasum":"61b8b051efa3968f8c28b59bb6e0436a78eced79","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"dist":{"shasum":"61b8b051efa3968f8c28b59bb6e0436a78eced79","size":7317,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-0.3.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-0.3.8.tgz"},"directories":{},"publish_time":1436064872823,"_cnpm_publish_time":1436064872823,"_hasShrinkwrap":false},"0.3.7":{"name":"ismobilejs","version":"0.3.7","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"CC0-1.0","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kaimallea/isMobile.git"},"main":"./isMobile","devDependencies":{"grunt":"0.4.x","grunt-contrib-jshint":"0.11.x","grunt-contrib-uglify":"0.9.x","grunt-contrib-jasmine":"0.8.x"},"gitHead":"eea98e21b2fadbde9fe2c65b07f9eec912e27c55","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"_id":"ismobilejs@0.3.7","scripts":{},"_shasum":"10e1cb83edcc37a872aafe168c29457f14085757","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"dist":{"shasum":"10e1cb83edcc37a872aafe168c29457f14085757","size":6196,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-0.3.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-0.3.7.tgz"},"directories":{},"publish_time":1436049309924,"_cnpm_publish_time":1436049309924,"_hasShrinkwrap":false},"0.3.5":{"name":"ismobilejs","version":"0.3.5","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"CC0","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"main":"./isMobile","devDependencies":{"grunt":"0.4.x","grunt-contrib-jshint":"0.8.x","grunt-contrib-uglify":"0.3.x","grunt-contrib-jasmine":"0.6.x"},"gitHead":"fc39bd3e34f7fc93c9293bb75878126770260baa","_id":"ismobilejs@0.3.5","scripts":{},"_shasum":"4b35a1ab7215224b14ea0effa614a95646434a58","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"dist":{"shasum":"4b35a1ab7215224b14ea0effa614a95646434a58","size":5995,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-0.3.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-0.3.5.tgz"},"directories":{},"publish_time":1416463047252,"_cnpm_publish_time":1416463047252,"_hasShrinkwrap":false},"0.3.4":{"name":"ismobilejs","version":"0.3.4","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"CC0","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"main":"./isMobile","devDependencies":{"grunt":"0.4.x","grunt-contrib-jshint":"0.8.x","grunt-contrib-uglify":"0.3.x","grunt-contrib-jasmine":"0.6.x"},"gitHead":"3be399d5b17751168e9a2e55980a3adb6051ef86","_id":"ismobilejs@0.3.4","scripts":{},"_shasum":"5ee746f44dd0ee9697378c4ce30a1e8e3cc42eaa","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"dist":{"shasum":"5ee746f44dd0ee9697378c4ce30a1e8e3cc42eaa","size":5991,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-0.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-0.3.4.tgz"},"directories":{},"publish_time":1414786309408,"_cnpm_publish_time":1414786309408,"_hasShrinkwrap":false},"0.3.3":{"name":"ismobilejs","version":"0.3.3","description":"A simple JS library that detects mobile devices.","keywords":["ismobile","device detection","mobile devices","useragent"],"homepage":"https://github.com/kaimallea/isMobile","license":"CC0","author":{"name":"Kai Mallea","email":"kmallea@gmail.com"},"main":"./isMobile","devDependencies":{"grunt":"0.4.x","grunt-contrib-jshint":"0.8.x","grunt-contrib-uglify":"0.3.x","grunt-contrib-jasmine":"0.6.x"},"_id":"ismobilejs@0.3.3","dist":{"shasum":"026da805a5cf830e49abce1d7fc7d6b6413fe421","size":5722,"noattachment":false,"key":"/ismobilejs/-/ismobilejs-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ismobilejs/download/ismobilejs-0.3.3.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"kai","email":"kmallea@gmail.com"},"maintainers":[{"name":"kai","email":"kmallea@gmail.com"}],"directories":{},"publish_time":1404419130838,"_cnpm_publish_time":1404419130838,"_hasShrinkwrap":false}},"readme":"[![Build Status](https://travis-ci.org/kaimallea/isMobile.png)](https://travis-ci.org/kaimallea/isMobile)\n[![Node dependencies status](https://david-dm.org/kaimallea/isMobile.png)](https://david-dm.org/kaimallea/isMobile)\n[![](https://data.jsdelivr.com/v1/package/npm/ismobilejs/badge)](https://www.jsdelivr.com/package/npm/ismobilejs)\n\n# isMobile\n\nA simple JS library that detects mobile devices in both the browser and NodeJS.\n\n## Why use isMobile?\n\n### In the Browser\n\nYou might not need this library. In most cases, [responsive design](https://en.wikipedia.org/wiki/Responsive_web_design) solves the problem of controlling how to render things across different screen sizes. I recommend a [mobile first](https://medium.com/@Vincentxia77/what-is-mobile-first-design-why-its-important-how-to-make-it-7d3cf2e29d00) approach. But there are always edge cases. If you have an edge case, then this library might be for you.\n\nMy edge case at the time was redirecting users to a completely separate mobile site. I tried to keep this script small (**currently ~1.3k bytes, minified**) and simple, because it would need to execute in the `<head>`, which is generally a bad idea, since JS blocks the downloading and rendering of all assets while it parses and executes. In the case of mobile redirection, I don't mind so much, because I want to start the redirect as soon as possible, before the device has a chance to start downloading and rendering other stuff. For non-mobile platforms, the script should execute fast, so the browser can quickly get back to downloading and rendering.\n\n#### How it works in the browser\n\nisMobile runs quickly during initial page load to detect mobile devices; it then creates a JavaScript object with the results.\n\n### In NodeJS\n\nYou might want to use this library to do server-side device detection to minimize the amount of bytes you send back to visitors. Or you have your own arbitrary use case.\n\n#### How is works in NodeJS\n\nYou import and call the `isMobile` function, passing it a user agent string; it then returns a JavaScript object with the results.\n\n## Devices detected by isMobile\n\nIn a browser, the following properties of the global `isMobile` object will either be `true` or `false`. In Node, `isMobile` will be whatever you named the variable.\n\n### Apple devices\n\n- `isMobile.apple.phone`\n- `isMobile.apple.ipod`\n- `isMobile.apple.tablet`\n- `isMobile.apple.universal`\n- `isMobile.apple.device` (any mobile Apple device)\n\n### Android devices\n\n- `isMobile.android.phone`\n- `isMobile.android.tablet`\n- `isMobile.android.device` (any mobile Android device; OkHttp user agents will match this)\n\n### Amazon Silk devices (also passes Android checks)\n\n- `isMobile.amazon.phone`\n- `isMobile.amazon.tablet`\n- `isMobile.amazon.device` (any mobile Amazon Silk device)\n\n### Windows devices\n\n- `isMobile.windows.phone`\n- `isMobile.windows.tablet`\n- `isMobile.windows.device` (any mobile Windows device)\n\n### \"Other\" devices\n\n- `isMobile.other.blackberry_10`\n- `isMobile.other.blackberry`\n- `isMobile.other.opera` (Opera Mini)\n- `isMobile.other.firefox`\n- `isMobile.other.chrome`\n- `isMobile.other.device` (any \"Other\" device)\n\n### Aggregate Groupings\n\n- `isMobile.any` - any device matched\n- `isMobile.phone` - any device in the 'phone' groups above\n- `isMobile.tablet` - any device in the 'tablet' groups above\n\n## Usage\n\n### Node.js\n\n#### Install\n\n```bash\nyarn add ismobilejs\n```\n\nor\n\n```bash\nnpm install ismobilejs\n```\n\n#### Use\n\n```ts\nimport isMobile from 'ismobilejs';\nconst userAgent = req.headers['user-agent'];\nconsole.log(isMobile(userAgent).any);\n```\n\nOr pass in a `window.navigator`-shaped object that includes at least a `userAgent` property. To properly detect iPad on iOS 13, the object should also include the `platform` and `maxTouchPoints` properties.\n\n```js\n// this is just an example. window.navigator is readonly in the browser\nwindow.navigator = {\n  ...\n  userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko)',\n  platform: 'MacIntel',\n  maxTouchPoints: 2,\n  ..\n}\n```\n\n```ts\nimport isMobile from 'ismobilejs';\nconsole.log(isMobile(window.navigator).apple.tablet);\n```\n\n### Browser\n\nA real-word example: I include the minified version of the script, inline, and at the top of the `<head>`. Cellular connections tend to suck, so it would be wasteful overhead to open another connection, just to download ~1.3kb of JS:\n\n<!-- prettier-ignore -->\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\" />\n    <script>\n      // Minified version of isMobile included in the HTML since it's small\n      (function () {var a={};var f=/iPhone/i,h=/iPod/i,i=/iPad/i,r=/\\biOS-universal(?:.+)Mac\\b/i,g=/\\bAndroid(?:.+)Mobile\\b/i,j=/Android/i,c=/(?:SD4930UR|\\bSilk(?:.+)Mobile\\b)/i,d=/Silk/i,b=/Windows Phone/i,k=/\\bWindows(?:.+)ARM\\b/i,m=/BlackBerry/i,n=/BB10/i,o=/Opera Mini/i,p=/\\b(CriOS|Chrome)(?:.+)Mobile/i,q=/Mobile(?:.+)Firefox\\b/i;function s(l){return function($){return $.test(l)}}function e(l){var $=(l=l||(\"undefined\"!=typeof navigator?navigator.userAgent:\"\")).split(\"[FBAN\");void 0!==$[1]&&(l=$[0]),void 0!==($=l.split(\"Twitter\"))[1]&&(l=$[0]);var a=s(l),e={apple:{phone:a(f)&&!a(b),ipod:a(h),tablet:!a(f)&&a(i)&&!a(b),universal:a(r),device:(a(f)||a(h)||a(i))&&!a(b)},amazon:{phone:a(c),tablet:!a(c)&&a(d),device:a(c)||a(d)},android:{phone:!a(b)&&a(c)||!a(b)&&a(g),tablet:!a(b)&&!a(c)&&!a(g)&&(a(d)||a(j)),device:!a(b)&&(a(c)||a(d)||a(g)||a(j))||a(/\\bokhttp\\b/i)},windows:{phone:a(b),tablet:a(k),device:a(b)||a(k)},other:{blackberry:a(m),blackberry10:a(n),opera:a(o),firefox:a(q),chrome:a(p),device:a(m)||a(n)||a(o)||a(q)||a(p)},any:!1,phone:!1,tablet:!1};return e.any=e.apple.universal||e.apple.device||e.android.device||e.windows.device||e.other.device,e.phone=e.apple.phone||e.android.phone||e.windows.phone,e.tablet=e.apple.tablet||e.android.tablet||e.windows.tablet,e}a=e();if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=a}else if(typeof define===\"function\"&&define.amd){define(function(){return a})}else{this[\"isMobile\"]=a}})();\n\n      // My own arbitrary use of isMobile, as an example\n      (function() {\n        var MOBILE_SITE = '/mobile/index.html', // site to redirect to\n          NO_REDIRECT = 'noredirect'; // cookie to prevent redirect\n\n        // I only want to redirect iPhones, Android phones\n        if (isMobile.apple.phone || isMobile.android.phone) {\n          // Only redirect if the user didn't previously choose\n          // to explicitly view the full site. This is validated\n          // by checking if a \"noredirect\" cookie exists\n          if (document.cookie.indexOf(NO_REDIRECT) === -1) {\n            document.location = MOBILE_SITE;\n          }\n        }\n      })();\n    </script>\n  </head>\n  <body>\n    <!-- imagine lots of html and content -->\n  </body>\n</html>\n```\n\n### jsDelivr CDN [![](https://data.jsdelivr.com/v1/package/npm/ismobilejs/badge)](https://www.jsdelivr.com/package/npm/ismobilejs)\n\nAlternatively, you can include this library via [jsDelivr CDN](https://www.jsdelivr.com/package/npm/ismobilejs) in a `script` tag:\n\n`<script src=\"https://cdn.jsdelivr.net/npm/ismobilejs@1/dist/isMobile.min.js\"></script>`\n\n**Visit the isMobile [jsDelivr page](https://www.jsdelivr.com/package/npm/ismobilejs) to get the most up-to-date URL pointing to the lastest version.**\n\n## Building manually\n\nAfter checking out the repo, install dependencies:\n\n```bash\nyarn install\n```\n\nThen build the library:\n\n```bash\nyarn build\n```\n\nThree versions of the library will be generated:\n\n1. `./cjs/index.js` - the CommonJS version of the library\n2. `./esm/index.js` - the ESModule version of the library\n3. `./dist/isMobile.min.js` - the browser version of the library\n\nAdditionally, types will be output to `types`.\n\n## Contributing\n\nThis library uses Spotify's [web-scripts](https://github.com/spotify/web-scripts) project to build, lint, test, format and release the this library.\n\nYou must use `yarn commit` rather than `git commit` to commit files. This enforced commit messages to following a specific format and enables automation of release notes and version bump.\n","_attachments":{},"homepage":"https://github.com/kaimallea/isMobile","bugs":{"url":"https://github.com/kaimallea/isMobile/issues"},"license":"MIT"}