{"name":"@ionic/discover","version":"1.0.0-alpha.72cfdebc","description":"Simple UDP based protocol for service discovery implemented in pure JS.","main":"dist/index.js","types":"dist/index.d.ts","homepage":"https://ionicframework.com/","author":{"name":"Ionic Team","email":"hi@ionic.io","url":"https://ionic.io"},"license":"MIT","files":["dist/","LICENSE","README.md"],"repository":{"type":"git","url":"git+https://github.com/ionic-team/ionic-cli.git"},"bugs":{"url":"https://github.com/ionic-team/ionic-cli/issues"},"scripts":{"clean":"rimraf dist","lint":"tslint --config tslint.js --project tsconfig.json","build":"npm run clean && tsc","watch":"tsc -w","test":"jest","prepublishOnly":"npm run build"},"dependencies":{"netmask":"^1.0.6","tslib":"^1.9.0"},"devDependencies":{"@types/netmask":"^1.0.30","@types/node":"^6.0.101","jest":"^22.4.2","jest-cli":"^22.4.2","rimraf":"^2.6.2","ts-jest":"^22.4.1","tslint":"^5.9.1","typescript":"~2.6.2"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json"}},"moduleFileExtensions":["ts","js"],"transform":{".(ts)":"<rootDir>/../../../node_modules/ts-jest/preprocessor.js"},"testRegex":"/__tests__/.*\\.(ts|js)$"},"readme":"# Ionic Discover\n\nSimple UDP based protocol for service discovery implemented in pure JS. It is\nnot mDNS or bonjour, but it tries to accomplish the same thing.\n\n## Spec\n\nIt uses a JSON based textual format:\n\n```ts\nconst message = {\n  t: now,\n  id: this.id,\n  name: this.name,\n  host: os.hostname(),\n  ip: iface.address,\n  port: this.port\n};\n\nreturn 'ION_DP' + JSON.stringify(message);\n```\n\n| key    | description\n|--------|-------------\n| `t`    | unix timestamp in second\n| `id`   | unique id for this session\n| `name` | name of the announced service\n| `host` | hostname of the machine announcing the service\n| `ip`   | ipv4 address\n| `port` | tcp port of the announced service\n\n## Installation\n\n```\nnpm install @ionic/discover\n```\n\n## Usage\n\n```ts\nimport { Publisher } from '@ionic/discover';\n\nconst serviceName = 'Ionic thing!';\nconst tcpPort = 8100;\nconst service = new Publisher(serviceName, tcpPort);\n\nservice.start();\n```\n","readmeFilename":"README.md","_id":"@ionic/discover@1.0.0-alpha.72cfdebc","_shasum":"8788f66bc54644652fef89ded33a65942b3c1a40","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.13.0","_npmUser":{"name":"ionicjs","email":"hi@ionicframework.com"},"dist":{"shasum":"8788f66bc54644652fef89ded33a65942b3c1a40","tarball":"http://registry-npm.ywwl.com/@ionic/discover/download/@ionic/discover-1.0.0-alpha.72cfdebc.tgz","fileCount":7,"unpackedSize":9160,"integrity":"sha512-TKb9rSsqEfmMSL13Jfv04xPKhQUie7ykncIyqasS/iBFgT62ZnQa8xzjgACMdg1hOhwCjGNEddYN8i0KNW7Qrg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCML1co+nTMBmkWa3WvaZTfWA6D0FecvNTuyOl7hWBpjgIhAOyX2tZuGN6CmqTfZzM3B+wO9mKzLrPmXHUZEJ6J6N1Y"}],"size":3607,"noattachment":false,"key":"/@ionic/discover/-/@ionic/discover-1.0.0-alpha.72cfdebc.tgz"},"maintainers":[{"email":"hi+adam@ionicframework.com","name":"adamdbradley"},{"email":"brandy@ionic.io","name":"brandyscarney"},{"email":"max@drifty.com","name":"drifty"},{"email":"dwieeb@gmail.com","name":"dwieeb"},{"email":"rudy@ionic.io","name":"fuiste"},{"email":"hi@ionicframework.com","name":"ionicjs"},{"email":"jgw9617@gmail.com","name":"jgw96"},{"email":"jthoms1@gmail.com","name":"jthoms1"},{"email":"manu.mtza@gmail.com","name":"manucorporat"},{"email":"max@ionic.io","name":"maxlynch"},{"email":"mikehartington@gmail.com","name":"mhartington"},{"email":"nick@ionic.io","name":"nhyatt"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/discover_1.0.0-alpha.72cfdebc_1520442441497_0.0318974526577378"},"_hasShrinkwrap":false,"publish_time":1520442441575,"_cnpm_publish_time":1520442441575,"dist-tags":{"beta":"2.0.0-beta.3","canary":"1.0.0-alpha.0405736c","latest":"3.1.8","rc":"1.0.0-rc.13","testing":"1.1.0-testing.73b2b888"}}