{"name":"uport-lite","version":"1.0.0-alpha","description":"Lightweight library for looking up public profiles on uport-registry","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/uport-project/uport-lite.git"},"files":["dist","lib","src"],"author":{"name":"Pelle Braendgaard","email":"pelle.braendgaard@consensys.net"},"license":"MIT","scripts":{"test":"jest","build:es5":"babel src -d lib","build:browser":"webpack --config webpack.config.js","build:min":"yarn build:browser && node_modules/.bin/google-closure-compiler-js --compilationLevel simple dist/uport-lite.js >  dist/uport-lite.min.js ","build":"yarn test && yarn build:es5 && yarn build:min"},"dependencies":{"base-x-bytearray":"^0.1.0","xmlhttprequest":"^1.8.0"},"browser":{"xmlhttprequest":false},"jest":{"coverageDirectory":"./coverage/","collectCoverage":true},"devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-polyfill":"^6.22.0","babel-preset-es2015":"^6.22.0","google-closure-compiler-js":"^20170124.0.0","jest":"^18.1.0","standard":"^8.6.0","webpack":"beta"},"gitHead":"95c1341be6e14bda4f8499522a10ef79a890f590","bugs":{"url":"https://github.com/uport-project/uport-lite/issues"},"homepage":"https://github.com/uport-project/uport-lite#readme","_id":"uport-lite@1.0.0-alpha","_shasum":"117723131fd72a38265bb84ab6a3153a46ded281","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.3.0","_npmUser":{"name":"pelleb","email":"pelleb@gmail.com"},"dist":{"shasum":"117723131fd72a38265bb84ab6a3153a46ded281","tarball":"http://registry-npm.ywwl.com/uport-lite/download/uport-lite-1.0.0-alpha.tgz","integrity":"sha512-UTYYGOx+MCda99s0BJtwlSFOSw7E3x1d0tqEbcTlZuwHogC219aRk15/JYGSEW8h2gUCT9dd34bh3ixD0V32hA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBSgehII5MfVcdNvK9vXKRmrZtPP2kweMjR2z/hZqep3AiEA0Y0015oEeugT8qv3yexbcjGSafkZGSC0YdGe9aFZvD4="}],"size":9675,"noattachment":false,"key":"/uport-lite/-/uport-lite-1.0.0-alpha.tgz"},"maintainers":[{"name":"pelleb","email":"pelleb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/uport-lite-1.0.0-alpha.tgz_1489798959492_0.815752488328144"},"directories":{},"readme":"# Light weight library for fetching public uPort profiles\n\nA uPort is an ethereum address representing an identity of a person, thing or other entitity. We are using the [MNID address encoding](https://github.com/uport-project/mnid) scheme to safely support multiple networks.\n\nA public profile is stored on ipfs at a hash registered in the [uPortRegistry](https://github.com/ConsenSys/uport-registry).\n\nThis library aims to let developers look up a profile for a given ethereum address and nothing else. It is designed to be tiny,\nso you can easily add uport functionality to non Ethereum apps.\n\n## Use\n\nBy default it uses the uport registry on the `ropsten` network as well as infura ipfs and jsonRpc gateways.\n\n```javascript\nimport UportLite from 'uport-lite'\n\n// UportLite is just a function returning a function. It is not a Class so don't use `new`\nconst registry = UportLite()\n\nregistry('2oVdmcz7BkWozm2JE4hHixRV8s5y3STqhPG', (error, profile) => {\n  console.log(profile)\n})\n```\n\nYou can configure it passing options to the function:\n\n```javascript\nimport UportLite from 'uport-lite'\n\nconst registry = UportLite({\n  ipfsGw: 'https://ipfs.infura.io/ipfs/',\n  infuraKey: 'INFURA_API_KEY',\n  networks: {\n    '0x94365e3b': {\n      rpcUrl: 'https://private.chain/rpc',\n      address: '0x0101....'\n    }\n  }\n})\n\nregistry('5A8bRWU3F7j3REx3vkJWxdjQPp4tqmxFPmab1Tr', (error, profile) => {\n  console.log(profile)\n})\n```\n","publish_time":1489798960059,"_cnpm_publish_time":1489798960059,"dist-tags":{"latest":"1.0.5","next":"1.0.0-alpha-6"}}