{"bugs":{"url":"https://github.com/ionic-team/ionic-cli/issues"},"dist":{"shasum":"bd1847ad6a078536e70b9da0ecc793e2d924076f","tarball":"https://registry.npmjs.org/@ionic/discover/-/discover-1.0.0-rc.5.tgz","fileCount":10,"integrity":"sha512-yecVBZOuqlBX6rEA9kZTWIMRSpsP3/nq7u/6EIsstJBoXMP/Hdds8oafLnDSbowPWsFsur4vYVhFvGLRYEpi4Q==","signatures":[{"sig":"MEYCIQDktCOvn5pK3csk5jDHXAl4ROL8B5KT4IBNDgZkaMi2MwIhAPGrcEj1QBxP2lqokSzrFkYws3h1dA2KyBQgSYNSAURn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa16ppCRA9TVsSAnZWagAAPWQP/0wNM3thPM67KB2JsJuy\n22AQcbAsz29onagXafdI0G8d3DDPfJmacUYxxjz/ye1Qn5fevV8KXDGE0t93\nPtF31hxzB6PVADkw49A8C1XTdvqVQAUAFcrk0RGIm1J0nCuio7QC4wGLuKDp\nEW/bRUBVJsV4JLLcZP15kTKEd0KeqEYNThy09AOQPOk279rWYXNUkddsxyW6\nIkFmXVTNVFd2o3fP4eBJ+3LDl0CdDp7/GPrUYyxNiMASURYWLN5bFmaFYOCL\nH8+P1SEl1NzxinXBcoQHW/R29a3MY9yHu6fWQmjRpeLwUdSY/1BlaanB8nRz\n7a0FvXf0MjxAKscZEuwHnaGo9p0IFNs+kTuEPh17QdAFoTkRhLxFSq0EAI58\niHace5GkwoHrBsjIOCExLzC8xALMMsAXtuKk2sVrskEodsXzxEalA0Y151kq\nmBtLXPGx74awJn2havRFCCQEVlNpsXKq9m0wAbqdeeen0ud9oU1xsiSk9hEh\n5UEeSiWe9HU5eBEPO481cWl5odBARCqIcChi0Rf2snKhbCa2lnDWrHFWrwy0\nM17fJVwjY80ao6yOjolvP3Oh2TLzGShjJ1pKo0Bb1Mc6o6Fy2pcH68cZfg1P\nob48ofNugYF3rAQztfuX42AfeNydbC+M1aPIu38d7nyE9TbhQupFky8ErZu1\nCWdk\r\n=pUPg\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.8.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":"drifty","email":"max@drifty.com"},{"name":"dwieeb","email":"dwieeb@gmail.com"},{"name":"fuiste","email":"rudy@ionic.io"},{"name":"ionicjs","email":"hi@ionicframework.com"},{"name":"jgw96","email":"jgw9617@gmail.com"},{"name":"jthoms1","email":"jthoms1@gmail.com"},{"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":"9.10.1","dependencies":{"ws":"^5.1.1","debug":"^3.1.0","tslib":"^1.9.0","netmask":"^1.0.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^22.4.2","rimraf":"^2.6.2","tslint":"^5.9.1","ts-jest":"^22.4.1","jest-cli":"^22.4.2","@types/ws":"^4.0.2","typescript":"~2.8.1","@types/node":"^6.0.101","@types/debug":"0.0.30","@types/netmask":"^1.0.30"},"_npmOperationalInternal":{"tmp":"tmp/discover_1.0.0-rc.5_1524083305229_0.8857492404887222","host":"s3://npm-registry-packages"},"_id":"@ionic/discover@1.0.0-rc.5","version":"1.0.0-rc.5"}