{"bugs":{"url":"https://github.com/ionic-team/ionic-cli/issues"},"dist":{"shasum":"70aca233e1faaf77598267750481ce0e79576300","tarball":"https://registry.npmjs.org/@ionic/discover/-/discover-2.0.0-beta.2.tgz","fileCount":10,"integrity":"sha512-92Ch1ItDoD9W4plcs/vApQFjFfs5xV+R729FHfndH6avW4FupbySLKJCITpECXrOJ+fFbYRPkTyZY3/WxKxpjw==","signatures":[{"sig":"MEUCIAatv6oPnc8mrl8YWkUCUbXdXlSR8Oop3QOVjqXsLm+rAiEAxK8eQQwSRQ3Orh3wD3jPYxaX/uWsL21zegnJUNeXKms=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16908,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0xntCRA9TVsSAnZWagAApcAP/0ADUkEgGhtV6FUNQS4R\n6YWukYFRkyWWbY2m+Fi72d2SUjkEOUZCdvuyBZqB1LJt+Vc+QXSK5iIjYPtb\nZB7csvTyA10zZd0J/FIR+Xf9jwsb4jAQcPx+TgFsiFG8TsR9TvbmORlnqaiX\nd0rsHJ6ncGg/DYOj90g0k7ey6DJG41by8Z7L7NpSDjBBIYr2SvXmRJSqMjBh\nb6S3wkVWMSI4xqzcexQomH40Jg2ukB/5zlFqTBVzTfngYb3r1afKU42Ew/pr\nEkAEugVmhmqA9u5e7r+9bzRuVPo4cUGyqlZNTgtG2rB07Pg2etUZ9jFHNJP/\n9A6d8JaGQSms2mXpzXPnPcaZfT1KN+XW3W1lwddw7NGh7iDY7+hwiKNhQP93\n5MuBzpdtQbOSgqJwGz9kZF2KMIKkpKp+eeHEGMIhVvdiDu7wGc+JIRH4Z82P\nEm0zYoRt8K4eGZ183KVzb2zkzGLS0+dk0VujK0UR9n9NPBOf+G65nmNF3udO\nX3E0zvG6rWw1BamaTgU/r8L9+OM6s+S/iJ9dJRgAUWQzNxJCcxyrVyCR4/aB\nE2v+EvPS2Hhh+9Ti42Q03clannMJ2m7IPfLC+G2R8bn9f5eluTejGqF8zTji\nyPfwjmfhMhiT77l6QSe02CmYfS/jdPdmoZ8Qy8bIO+ctqEVLsySAqPfOGgG+\n4NGI\r\n=vhpj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"@ionic/discover","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","gitHead":"d82bfdec8826557b816befcac1f220688e55f7ca","license":"MIT","scripts":{"lint":"tslint --project tsconfig.json","test":"jest --maxWorkers=4","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":"lerna/3.13.4/node@v10.15.2+x64 (darwin)","description":"Simple UDP based protocol for service discovery implemented in pure JS.","directories":{},"lint-staged":{"ignore":["**/__tests__/*.{ts,tsx}"],"linters":{"*.{ts,tsx}":"npm run lint"}},"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":"giodimiliaionic","email":"giovanni@ionic.io"},{"name":"ionicjs","email":"hi@ionicframework.com"},{"name":"jcesarmobile","email":"jcesarmobile@gmail.com"},{"name":"jthoms1","email":"jthoms1@gmail.com"},{"name":"kensodemann","email":"ken.sodemann@gmail.com"},{"name":"larsmikkelsen","email":"lars@ionic.io"},{"name":"liamdebeasi","email":"liam@debeasi.com"},{"name":"lukaswm","email":"luke@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":"10.15.2","dependencies":{"ws":"^6.0.0","debug":"^4.0.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.10.1","jest-cli":"^24.1.0","@types/ws":"^6.0.0","typescript":"~3.4.2","@types/jest":"^24.0.3","@types/node":"~8.9.4","lint-staged":"^8.0.0","@types/debug":"^4.1.1","@types/netmask":"^1.0.30"},"_npmOperationalInternal":{"tmp":"tmp/discover_2.0.0-beta.2_1557338604819_0.10927760986774127","host":"s3://npm-registry-packages"},"_id":"@ionic/discover@2.0.0-beta.2","version":"2.0.0-beta.2"}