{"_id":"is-touch-device","_rev":"3902033","name":"is-touch-device","description":"Is the current JS environment a touch device?","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"airbnbeng","email":"opensource@airbnb.com"},{"name":"brieb","email":""},{"name":"christianv","email":"vueringschristian@gmail.com"},{"name":"danbeam","email":""},{"name":"ljharb","email":""},{"name":"majapw","email":""},{"name":"sharmilajesupaul","email":"tosharmila@gmail.com"}],"time":{"modified":"2025-09-01T01:09:11.000Z","created":"2017-06-17T23:56:45.352Z","1.0.1":"2017-06-18T03:45:24.034Z","1.0.0":"2017-06-17T23:56:45.352Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/airbnb/is-touch-device.git"},"versions":{"1.0.1":{"name":"is-touch-device","version":"1.0.1","description":"Is the current JS environment a touch device?","main":"build","scripts":{"prepublish":"safe-publish-latest && (not-in-publish || npm run build)","clean":"rimraf build && mkdirp src","prebuild":"npm run clean","build":"babel src --out-dir build","prelint":"editorconfig-tools check * src/* test/*","lint":"eslint .","coverage":"cross-env NODE_ENV=test nyc npm run tests-only","tests-only":"mocha test","pretest":"npm run lint","test":"npm run tests-only"},"repository":{"type":"git","url":"git+https://github.com/airbnb/is-touch-device.git"},"keywords":["touch","is","documenttouch","maxtouchpoints","msmaxtouchpoints","touchpoints","ontouchstart"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/airbnb/is-touch-device/issues"},"homepage":"https://github.com/airbnb/is-touch-device#readme","devDependencies":{"babel-cli":"^6.24.1","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-istanbul":"^4.1.4","babel-preset-airbnb":"^2.2.3","babel-register":"^6.24.1","chai":"^4.0.2","cross-env":"^5.0.1","editorconfig-tools":"^0.1.1","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.2.0","eslint-plugin-import":"^2.3.0","in-publish":"^2.0.0","mkdirp":"^0.5.1","mocha":"^3.4.2","mocha-wrap":"^2.1.1","nyc":"^10.3.2","rimraf":"^2.6.1","safe-publish-latest":"^1.1.1"},"contributors":[{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"https://github.com/ljharb"},{"name":"Maja Wichrowska","email":"maja.wichrowska@airbnb.com"},{"name":"Victor","email":"victor@turo.com","url":"https://github.com/tagoro9"}],"gitHead":"224506a94d64d478aae65d25f184a4405339f453","_id":"is-touch-device@1.0.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"9a2fd59f689e9a9bf6ae9a86924c4ba805a42eab","size":4491,"noattachment":false,"key":"/is-touch-device/-/is-touch-device-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-touch-device/download/is-touch-device-1.0.1.tgz"},"maintainers":[{"name":"airbnbeng","email":"opensource@airbnb.com"},{"name":"brieb","email":""},{"name":"christianv","email":"vueringschristian@gmail.com"},{"name":"danbeam","email":""},{"name":"ljharb","email":""},{"name":"majapw","email":""},{"name":"sharmilajesupaul","email":"tosharmila@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-touch-device-1.0.1.tgz_1497757523083_0.37564478907734156"},"directories":{},"publish_time":1497757524034,"_hasShrinkwrap":false,"_cnpm_publish_time":1497757524034,"_cnpmcore_publish_time":"2021-12-16T16:12:29.294Z"},"1.0.0":{"name":"is-touch-device","version":"1.0.0","description":"Is the current JS environment a touch device?","main":"build","scripts":{"clean":"rimraf build && mkdirp src","prebuild":"npm run clean","build":"babel src --out-dir build","prelint":"editorconfig-tools check * src/* test/*","lint":"eslint .","coverage":"cross-env NODE_ENV=test nyc npm run tests-only","tests-only":"mocha test","pretest":"npm run lint","test":"npm run tests-only"},"repository":{"type":"git","url":"git+https://github.com/airbnb/is-touch-device.git"},"keywords":["touch","is","documenttouch","maxtouchpoints","msmaxtouchpoints","touchpoints","ontouchstart"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/airbnb/is-touch-device/issues"},"homepage":"https://github.com/airbnb/is-touch-device#readme","devDependencies":{"babel-cli":"^6.24.1","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-istanbul":"^4.1.4","babel-preset-airbnb":"^2.2.3","babel-register":"^6.24.1","chai":"^4.0.2","cross-env":"^5.0.1","editorconfig-tools":"^0.1.1","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.2.0","eslint-plugin-import":"^2.3.0","mkdirp":"^0.5.1","mocha":"^3.4.2","mocha-wrap":"^2.1.1","nyc":"^10.3.2","rimraf":"^2.6.1"},"contributors":[{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"https://github.com/ljharb"},{"name":"Maja Wichrowska","email":"maja.wichrowska@airbnb.com"},{"name":"Victor","email":"victor@turo.com","url":"https://github.com/tagoro9"}],"gitHead":"a437c53dc34676368b6262e05ee7cf63db1ba4cd","_id":"is-touch-device@1.0.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"86222326f0aa360660d50cfd6a64962da94c56bb","size":4046,"noattachment":false,"key":"/is-touch-device/-/is-touch-device-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-touch-device/download/is-touch-device-1.0.0.tgz"},"maintainers":[{"name":"airbnbeng","email":"opensource@airbnb.com"},{"name":"brieb","email":""},{"name":"christianv","email":"vueringschristian@gmail.com"},{"name":"danbeam","email":""},{"name":"ljharb","email":""},{"name":"majapw","email":""},{"name":"sharmilajesupaul","email":"tosharmila@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-touch-device-1.0.0.tgz_1497743803758_0.42973550013266504"},"directories":{},"publish_time":1497743805352,"_hasShrinkwrap":false,"_cnpm_publish_time":1497743805352,"_cnpmcore_publish_time":"2021-12-16T16:12:29.481Z"}},"readme":"# is-touch-device <sup>[![Version Badge][2]][1]</sup>\n\n[![Build Status][3]][4]\n[![dependency status][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][9]][1]\n\nIs the current JS environment a touch device?\n\n## Usage\n\n```javascript\nvar isTouchDevice = require('is-touch-device');\nvar assert = require('assert');\n\nassert.equal(typeof isTouchDevice(), 'boolean');\n```\n\n[1]: https://npmjs.org/package/is-touch-device\n[2]: http://versionbadg.es/airbnb/is-touch-device.svg\n[3]: https://api.travis-ci.org/airbnb/is-touch-device.svg\n[4]: https://travis-ci.org/airbnb/is-touch-device\n[5]: https://david-dm.org/airbnb/is-touch-device.svg\n[6]: https://david-dm.org/airbnb/is-touch-device\n[7]: https://david-dm.org/airbnb/is-touch-device/dev-status.svg\n[8]: https://david-dm.org/airbnb/is-touch-device?type=dev\n[9]: https://nodei.co/npm/is-touch-device.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/is-touch-device.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/is-touch-device.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=is-touch-device\n","_attachments":{},"homepage":"https://github.com/airbnb/is-touch-device#readme","bugs":{"url":"https://github.com/airbnb/is-touch-device/issues"},"license":"MIT"}