{"bugs":{"url":"https://github.com/ionic-team/ionic-cli/issues"},"dist":{"shasum":"c4845f929696f53811e6cd2fdb313933c8bc30c1","tarball":"https://registry.npmjs.org/@ionic/discover/-/discover-1.0.0-alpha.3c83e928.tgz","fileCount":7,"integrity":"sha512-AA8IClBv7pQavE9ank8NzWNlclY36YnlSgrNzPGXQ4Ja4yoLQLzbYDdRFbYbCc3P2ri2NvmvjxjHdM7Ht7rJdw==","signatures":[{"sig":"MEQCIEBKScA6AN4Jt0Lb3WqLvSPKhN/G8wthcmeSemDRWVC3AiAPv5RFjsk9CJXb9W3CZo01w6QVGFWKjmGm7CL4+z9QYw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9160},"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","_from":".","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: 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","_shasum":"c4845f929696f53811e6cd2fdb313933c8bc30c1","license":"MIT","scripts":{"lint":"tslint --config tslint.js --project tsconfig.json","test":"jest","build":"npm run clean && tsc","clean":"rimraf dist","watch":"tsc -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"ionicjs","email":"hi@ionicframework.com"},"homepage":"https://ionicframework.com/","repository":{"url":"git+https://github.com/ionic-team/ionic-cli.git","type":"git"},"_npmVersion":"3.10.10","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"}],"_nodeVersion":"6.13.0","dependencies":{"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","typescript":"~2.6.2","@types/node":"^6.0.101","@types/netmask":"^1.0.30"},"_npmOperationalInternal":{"tmp":"tmp/discover_1.0.0-alpha.3c83e928_1520442150010_0.47357167821665014","host":"s3://npm-registry-packages"},"_id":"@ionic/discover@1.0.0-alpha.3c83e928","version":"1.0.0-alpha.3c83e928"}