{"name":"@ionic/discover","version":"1.1.0-testing.458303e0","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 --preserveWatchOutput","test":"jest","prepublishOnly":"npm run build"},"dependencies":{"debug":"^3.1.0","netmask":"^1.0.6","tslib":"^1.9.0","ws":"^6.0.0"},"devDependencies":{"@types/debug":"0.0.30","@types/netmask":"^1.0.30","@types/node":"^6.0.101","@types/ws":"^5.1.2","jest":"^23.0.1","jest-cli":"^23.0.1","rimraf":"^2.6.2","ts-jest":"^23.0.0","tslint":"^5.9.1","typescript":"~2.9.1"},"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: '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","readmeFilename":"README.md","_id":"@ionic/discover@1.1.0-testing.458303e0","_npmVersion":"5.10.0","_nodeVersion":"8.11.2","_npmUser":{"name":"dwieeb","email":"dwieeb@gmail.com"},"dist":{"integrity":"sha512-0PFjHslvA/0BKeWYTsisODXIZbjsc4EVAPuYckIt0z9Up+Nnisfsa+Y85wSMPYnsNp5Qkt8DoILT5tMw6tumkA==","shasum":"3ad8ada67515db6c2c349eb50bff02d1e8f9fd0e","tarball":"http://registry-npm.ywwl.com/@ionic/discover/download/@ionic/discover-1.1.0-testing.458303e0.tgz","fileCount":10,"unpackedSize":14351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbWmWRCRA9TVsSAnZWagAAsr0P/ideXCKlqpbJ/WwJMkmj\n/+c1bpQE8QmRpDehHumHEbCE23MPLpuitDyiUFY91qPM0va7PdATTn6Gv+1g\nC14aEv4IWvsmfqm3+uC9DYYwSwjEmNoZnlkLBELm2SEznmalhF8IZaFF58c4\nX0bOBiLJonxEJWQoS94+VSCPtuWSplwqR+i4S8wGjOzpEYGlxhutBH6ug2t7\niNb0xa8HB2NJsYtiBjdMVA/LXNxAilSYAGVXF6rR+X/EuxfBNHRD2kCh8YIJ\na1RLR0RRjnzfJqIdWlxRo7vFr1gPBXcVdZ1A6airzoIHmhiBLPX99J7MN946\no41IGjup1JjreA4B7APArxkQCXbT8EYGYfcOrZDg6JQbH1SaA9fqYk/jY9e0\nCjvMuc6uwpkkZNM9Ou5btpg7QeE0+bUhw0+roHojfIZzVeQXHixsxeKjFwi/\niBcepJpNjKO9sqV4Th1Liu6/aVxaP15icr8EEfjbpHCOnkYbtm2JtNmvUTS6\ncIyGhdtLQ6kaTgdSb6kJxWN1H1DsfavwuzKNypbVMaAOADFMnb8rcGMOEIoU\nGOa7kSyfgqp4PM1A9lTR52R+/REQm/kVuTKXsu4K4rFZFMzoQqM3QoBaWnMw\nM46rnxINnQ/xVJVykmh5AulkW0bmRsbC/vjVGljEZmcGuGiC6oxUcqWGLGQ4\n4yyg\r\n=7YjQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJnXoJhL0ps+OfOQBBioMI60p/+duFhOmWBCpPIKPMXAiEAitSdMjBE/kSkUj3oUmmeEYB+B/L9NhWoy2EbTrxeArs="}],"size":4879,"noattachment":false,"key":"/@ionic/discover/-/@ionic/discover-1.1.0-testing.458303e0.tgz"},"maintainers":[{"email":"hi+adam@ionicframework.com","name":"adamdbradley"},{"email":"brandy@ionic.io","name":"brandyscarney"},{"email":"cam@camwiegert.com","name":"camwiegert"},{"email":"max@drifty.com","name":"drifty"},{"email":"dwieeb@gmail.com","name":"dwieeb"},{"email":"rudy@ionic.io","name":"fuiste"},{"email":"giovanni@ionic.io","name":"giodimiliaionic"},{"email":"hi@ionicframework.com","name":"ionicjs"},{"email":"jthoms1@gmail.com","name":"jthoms1"},{"email":"lars@ionic.io","name":"larsmikkelsen"},{"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"},{"email":"perry@ionic.io","name":"perrygovier"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/discover_1.1.0-testing.458303e0_1532650897286_0.9032703799822872"},"_hasShrinkwrap":false,"publish_time":1532650897396,"_cnpm_publish_time":1532650897396,"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"}}