{"bugs":{"url":"https://github.com/ionic-team/ionic-cli/issues"},"dist":{"shasum":"aab3e36153c0737ecc9cd09bbb7e90931650144f","tarball":"https://registry.npmjs.org/@ionic/discover/-/discover-1.0.0-rc.12.tgz","fileCount":10,"integrity":"sha512-3s3ivfmTpYA4H7kNptiQKCHzEut32gOycemUdQ8+3FIqybBX6d/+q1UXxrhhT3UCNwY36b90Z3W8sYd3kyBj8Q==","signatures":[{"sig":"MEUCIQDbgistJGb/UVkn1L9Xg4qkxGyFK4Vk60EB+GgsKB1I+AIgJd8mreiXCjuBWH5FNWp4jZl0KZtLFyCArAK0eluot5M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbV17sCRA9TVsSAnZWagAAyvcP/1wk2YMxsmM/zFyuCnmX\n8UJ9/sPlogLFwjXdN33Aa4sHUWW6p0FcJYQg/9UHAqJppoRIRyhSiinYHdVj\nA/GUyjCHVizzjKHYganufDlW/kBXEKlVrxDvET3mgY3y7bXDbETzLQVWxIUN\nUG/rVAOTt+Iq9YKLjrXJm6a9Bu0oLJkTPxkvF1XIsII0gZFwyc45YOku7QNt\nv5MUAoc1OITOHRT3YGfhhdD1ab79FtdOtBerH8jmd45T8fkKDO4Ue/GruYq1\naW2G+7Ikp0XNQ0d5LTr3dfuwpe9/XOAbZRfSNjQp0DR1DkSRAt8y+kBJKM9n\nTYMlLfHMcQ74LE11tUUQe5PaKTUszbFtaPQAlieqgQ1C+0BX2E357afkvFC3\nHHMvx2S8KYtLG2YYYPeZ1jPJE3/LdljLpnx1BQscpV4uGG5rToET5sVvwZGr\n7P7EA7UbBeHTf1TxS8mg3kcmR5SZPGsTADKOGNWnG9dlh4PvlpMRZowOIHOk\nJsBCTBx+WMg4NiCf4/+iAk8zYJmsmEhvBIfsHzooAFMaOkNa10QM3JMh8OPh\nhpZzfkuJ4W0nNq3EPNagYsdBci6YPnh+PN/CzVJi+zdunD4Bu/dhH24LRD/H\nQJX3Cr6SvlKCadzXnEooK6jewqG/LqW0PQQtjUCqqj8UCclkDgAuoQ94ZjsD\nJLB5\r\n=PQDx\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json"}},"testRegex":"/__tests__/.*\\.(ts|js)$","transform":{".(ts)":"<rootDir>/../../../node_modules/ts-jest/preprocessor.js"},"moduleFileExtensions":["ts","js"]},"main":"dist/index.js","name":"@ionic/discover","files":["dist/","LICENSE","README.md"],"types":"dist/index.d.ts","author":{"url":"https://ionic.io","name":"Ionic Team","email":"hi@ionic.io"},"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: 'unique',\n  name: this.name,\n  host: os.hostname(),\n  ip: iface.address,\n  port: number1,\n  commPort: number2\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| `commPort` | optional websocket port of the communication server\n\n## Installation\n\n```\nnpm install @ionic/discover\n```\n\n## Usage\n\n```ts\nimport { Publisher } from '@ionic/discover';\n\nconst namespace = 'your-service';\nconst serviceName = 'Ionic thing!';\nconst tcpPort = 8100;\nconst service = new Publisher(namespace, serviceName, tcpPort);\n\nawait service.start();\n```\n","license":"MIT","scripts":{"lint":"tslint --config tslint.js --project tsconfig.json","test":"jest","build":"npm run clean && tsc","clean":"rimraf dist","watch":"tsc -w --preserveWatchOutput","prepublishOnly":"npm run build"},"_npmUser":{"name":"dwieeb","email":"dwieeb@gmail.com"},"homepage":"https://ionicframework.com/","repository":{"url":"git+https://github.com/ionic-team/ionic-cli.git","type":"git"},"_npmVersion":"5.10.0","description":"Simple UDP based protocol for service discovery implemented in pure JS.","directories":{},"maintainers":[{"name":"adamdbradley","email":"hi+adam@ionicframework.com"},{"name":"brandyscarney","email":"brandy@ionic.io"},{"name":"camwiegert","email":"cam@camwiegert.com"},{"name":"drifty","email":"max@drifty.com"},{"name":"dwieeb","email":"dwieeb@gmail.com"},{"name":"fuiste","email":"rudy@ionic.io"},{"name":"giodimiliaionic","email":"giovanni@ionic.io"},{"name":"ionicjs","email":"hi@ionicframework.com"},{"name":"jthoms1","email":"jthoms1@gmail.com"},{"name":"larsmikkelsen","email":"lars@ionic.io"},{"name":"manucorporat","email":"manu.mtza@gmail.com"},{"name":"maxlynch","email":"max@ionic.io"},{"name":"mhartington","email":"mikehartington@gmail.com"},{"name":"nhyatt","email":"nick@ionic.io"},{"name":"perrygovier","email":"perry@ionic.io"}],"_nodeVersion":"8.11.2","dependencies":{"ws":"^6.0.0","debug":"^3.1.0","tslib":"^1.9.0","netmask":"^1.0.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.0.1","rimraf":"^2.6.2","tslint":"^5.9.1","ts-jest":"^23.0.0","jest-cli":"^23.0.1","@types/ws":"^5.1.2","typescript":"~2.9.1","@types/node":"^6.0.101","@types/debug":"0.0.30","@types/netmask":"^1.0.30"},"_npmOperationalInternal":{"tmp":"tmp/discover_1.0.0-rc.12_1532452588156_0.68349954633304","host":"s3://npm-registry-packages"},"_id":"@ionic/discover@1.0.0-rc.12","version":"1.0.0-rc.12"}