{"_id":"ssb-msgs","_rev":"51-48aed23ef769fcdf4c83378f6a9fef9a","name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","dist-tags":{"latest":"5.2.0"},"versions":{"0.1.0":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"0.1.0","homepage":"https://github.com/pfraze/ssb-msgs","repository":{"type":"git","url":"git://github.com/pfraze/ssb-msgs.git"},"dependencies":{},"devDependencies":{},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pfraze/ssb-msgs/issues"},"_id":"ssb-msgs@0.1.0","dist":{"shasum":"89368423b48337f33a15df0be2d872f1f7a5a59b","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-0.1.0.tgz","integrity":"sha512-er+NfaOAqlEt1D7XJMVJcil6jrA8vwKVntLTAx3NC64LXxo//O/XKhrXXrrUKEp1WbyMjenIPZh6vNvvzPrKAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQn7Ktdwjeq+VQffyol9oz9vp4WwjrmdtYj7NpRnW8RAiB9JDf3jxkyp0GmMFDdzTYRSDp2c92E2M7sijgoWrun8w=="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"}],"directories":{}},"0.1.1":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"0.1.1","homepage":"https://github.com/pfraze/ssb-msgs","repository":{"type":"git","url":"git://github.com/pfraze/ssb-msgs.git"},"dependencies":{},"devDependencies":{},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pfraze/ssb-msgs/issues"},"_id":"ssb-msgs@0.1.1","dist":{"shasum":"d1a7f0691403fe53713c07e0dd05c1745470301d","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-0.1.1.tgz","integrity":"sha512-+o681r3uuOt8sBxUZdPkx71HiBBuEFqL6Gi3yPArDNC6aP9po5mpsk8Q9Bo/j2FreAUDTSFNYRk6IMdIhTe6Nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmWPycYFLG3lTz0GvFcC65c7KQe8amlWvwyibwgjgnoAiAFbK25gfOkEYbi5ircB8kMpFW6z736eSPVQJtiMYJaIg=="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"}],"directories":{}},"0.2.0":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"0.2.0","homepage":"https://github.com/pfraze/ssb-msgs","repository":{"type":"git","url":"git://github.com/pfraze/ssb-msgs.git"},"dependencies":{},"devDependencies":{},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pfraze/ssb-msgs/issues"},"_id":"ssb-msgs@0.2.0","dist":{"shasum":"7d1cafcce5a859d6c56fb876f8ad14f79981c9d0","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-0.2.0.tgz","integrity":"sha512-Myzy6YJjfYUwEd7icX7uq+BimqHzT5jGcdIK5AtA7VHQRPwy5sfKu86DKUXGmHahcjLq8eZwYqnHu+qfX4wN7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAmXNvo139sDaM9v+EGoFnLIqEbbfSjIW/QkVEXS/IpNAiEAjITBjyRuqDslP9S8knQ8XQQ4epICO1HjCZcyVyGYfYU="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"}],"directories":{}},"1.0.0":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"1.0.0","homepage":"https://github.com/pfraze/ssb-msgs","repository":{"type":"git","url":"git://github.com/pfraze/ssb-msgs.git"},"dependencies":{},"devDependencies":{},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","gitHead":"005ad05ef63f60700d4789894293000f99c7e380","bugs":{"url":"https://github.com/pfraze/ssb-msgs/issues"},"_id":"ssb-msgs@1.0.0","scripts":{},"_shasum":"60fee37b7d443a87cfa4b91d6abf0bd684c49d3b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"}],"dist":{"shasum":"60fee37b7d443a87cfa4b91d6abf0bd684c49d3b","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-1.0.0.tgz","integrity":"sha512-1tRMkX71eRne86kuTgSjdTvk5M7Gdyi9tRRhQyNb10KEgy4oOi3A8Q5W8VOjMFPsota8CKZlrXE996XTEsG+5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDg1aOHfiDNjejBHx5mc0tZlqnSGx2EyBj+ZMYJBNoviwIhAI6dg4jLrkZIvvuJuAOOTwT6eZLTG2NeDuwBSQ45xrot"}]},"directories":{}},"1.1.0":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"1.1.0","homepage":"https://github.com/ssbc/ssb-msgs","repository":{"type":"git","url":"git://github.com/ssbc/ssb-msgs.git"},"dependencies":{},"devDependencies":{},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","gitHead":"01acda2f678e6d93c1b7652baf940d02fad11c3d","bugs":{"url":"https://github.com/ssbc/ssb-msgs/issues"},"_id":"ssb-msgs@1.1.0","scripts":{},"_shasum":"7b06d53ee7b30312e35f800018ac5e67f38eb5d9","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"}],"dist":{"shasum":"7b06d53ee7b30312e35f800018ac5e67f38eb5d9","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-1.1.0.tgz","integrity":"sha512-g2Aiad0CCDPTTlNkK121dCESRsFIdmaiJYbkD6vvVY77lOPtQVs5DTMgxUKvRKBEqN0W5Fbfuyp0nG6vyPq4OA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4yK4Od0h0Akkl5L1Xon6jNWRUrR1DtUf6oX6/GhP9/AIhAOpQk8hxT9DB8IPIkthZR02aPYBNquSXOU6Ifkbp6lRl"}]},"directories":{}},"1.1.1":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"1.1.1","homepage":"https://github.com/ssbc/ssb-msgs","repository":{"type":"git","url":"git://github.com/ssbc/ssb-msgs.git"},"dependencies":{},"devDependencies":{},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","gitHead":"25bacb357f6ce2e6b233436067a63ca8da6987c2","bugs":{"url":"https://github.com/ssbc/ssb-msgs/issues"},"_id":"ssb-msgs@1.1.1","scripts":{},"_shasum":"ff34d6f7f49330e349a4899a0000bcb19248fd9d","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"}],"dist":{"shasum":"ff34d6f7f49330e349a4899a0000bcb19248fd9d","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-1.1.1.tgz","integrity":"sha512-+OLSIqJHgrH7Ka7nIlVBjmhRB+i3kVWrBocmf4E7asKdkH/8DmgfoyA+MxXcU/Ab7ndJZzcPxnnhiHSvdSVo9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE5abziTTYPe1b9kW8JP0OEiJsykOYbqP/E1/LDepDTEAiBnhTSfl+CUX/jb1u/7dV2AwSpDmX03UlgES65KOq6QdA=="}]},"directories":{}},"2.0.0":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"2.0.0","homepage":"https://github.com/ssbc/ssb-msgs","repository":{"type":"git","url":"git://github.com/ssbc/ssb-msgs.git"},"dependencies":{},"devDependencies":{},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","gitHead":"3241ac89ed00d2724fc79f0e8a24e8279d23c045","bugs":{"url":"https://github.com/ssbc/ssb-msgs/issues"},"_id":"ssb-msgs@2.0.0","scripts":{},"_shasum":"c9cc43310cd61a2dea426f5e0834647f1ded2342","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"}],"dist":{"shasum":"c9cc43310cd61a2dea426f5e0834647f1ded2342","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-2.0.0.tgz","integrity":"sha512-/W1BYS7K8U2hPTLxq4q2bZNc/xnernRVRJmu8+J/kHJvJYoBTCgnI8I1u7cBawxKMPTKE5k00O7o1vdUKlytqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGXsqWs1aOP3ZGMJo13soUCisvI79E9V1yxKYwIieoHhAiBPa1XklR2xTv7AvUTpBHPahMEXXv5GobfuVd9VtWI1EQ=="}]},"directories":{}},"3.0.0":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"3.0.0","homepage":"https://github.com/ssbc/ssb-msgs","repository":{"type":"git","url":"git://github.com/ssbc/ssb-msgs.git"},"dependencies":{},"devDependencies":{},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","gitHead":"5ef5cfc1eaea29ae522a10595c23c50f0a5bcde9","bugs":{"url":"https://github.com/ssbc/ssb-msgs/issues"},"_id":"ssb-msgs@3.0.0","scripts":{},"_shasum":"d586304f9a00925e44ee84b104833d57128fb3c8","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"}],"dist":{"shasum":"d586304f9a00925e44ee84b104833d57128fb3c8","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-3.0.0.tgz","integrity":"sha512-9IzhTwSqVZW4ZBall1L1Io6yGeOq5hI9akBKcKXIFGqIe5bK5FutzBN6p7rnNgKe60703OjVweu0U1Nwb006bw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyhnaiipKJnapHWVpFDa8Gz3Z4WB8d3bTCCM+/+gVR0QIhAIazlpkiLlDq75M8KJM78jXbjo1WJxecTu/RXmxM9IDF"}]},"directories":{}},"3.1.0":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"3.1.0","homepage":"https://github.com/ssbc/ssb-msgs","repository":{"type":"git","url":"git://github.com/ssbc/ssb-msgs.git"},"dependencies":{},"devDependencies":{},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","gitHead":"516b7a8f58664e5fa4bed82d01ab5856a603b66d","bugs":{"url":"https://github.com/ssbc/ssb-msgs/issues"},"_id":"ssb-msgs@3.1.0","scripts":{},"_shasum":"d96579aaaba81bdfc68b32c754cf9723ed65e3ec","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"}],"dist":{"shasum":"d96579aaaba81bdfc68b32c754cf9723ed65e3ec","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-3.1.0.tgz","integrity":"sha512-Y5XUKp1TTjPPcQ3YMbCOWBkeymZ30SKGsFjKCdFTsqZMepeNNU2JnHEmFxdMjrgFcf4KGgw2XG+LhGFEm/H1SA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQP81rHt+hknDOMFr/849lhDQBKbLX0IbpNtovRUSgIAIgL6Pk+8faN0w52xoQRnpEIL303RHE/Huj0vqws5E+QT4="}]},"directories":{}},"3.1.1":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"3.1.1","homepage":"https://github.com/ssbc/ssb-msgs","repository":{"type":"git","url":"git://github.com/ssbc/ssb-msgs.git"},"dependencies":{},"devDependencies":{},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","gitHead":"d0f2b0425f2eeacfeef7bb8c4f240ac5723fe100","bugs":{"url":"https://github.com/ssbc/ssb-msgs/issues"},"_id":"ssb-msgs@3.1.1","scripts":{},"_shasum":"ac4e952497b42448df32ab8ad510ad8cb6448655","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"}],"dist":{"shasum":"ac4e952497b42448df32ab8ad510ad8cb6448655","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-3.1.1.tgz","integrity":"sha512-889IB9deiBVlSUN4/lDDdQqiSkw4ioqENx45h8+52kiuRKW00r/gnfIK4AymuxTSY7UKzx0VS2YmwnHczlyt4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID11CaF6RU5dtxHdGZb4ML8YfupT2j7xmKnuDj8+kqTPAiEA0qmSIgQRh0GjkBxkNkNg6X/2FR0eLVLEc1THacqR5ss="}]},"directories":{}},"3.1.2":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"3.1.2","homepage":"https://github.com/ssbc/ssb-msgs","repository":{"type":"git","url":"git://github.com/ssbc/ssb-msgs.git"},"dependencies":{"ssb-ref":"~0.0.0"},"devDependencies":{},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","gitHead":"e98aa29acff4622f6d77df5d1eec742b548e0eb5","bugs":{"url":"https://github.com/ssbc/ssb-msgs/issues"},"_id":"ssb-msgs@3.1.2","scripts":{},"_shasum":"5c32dd941b775a43f355705550ae2f57e1a5769d","_from":".","_npmVersion":"3.0.0","_nodeVersion":"2.3.1","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"},{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"5c32dd941b775a43f355705550ae2f57e1a5769d","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-3.1.2.tgz","integrity":"sha512-oQKip4idIZ/RinuFK6oLoYrZV+2M7Bpj3iR1M3OZzrqQ2V7t2Ht5lUoYJtzpNN9WY5PNQl1Ngz0ALdKReIvKJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChWByUzKsk+YKW8YgQ7V3IK+zOWGCf/FnY43o00q2/mgIhANNIn6af/3eEdebhSNMH0/1dhwA1tAZCa4ToCrEz/WPD"}]},"directories":{}},"4.0.0":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"4.0.0","homepage":"https://github.com/ssbc/ssb-msgs","repository":{"type":"git","url":"git://github.com/ssbc/ssb-msgs.git"},"dependencies":{"ssb-ref":"^1.0.0"},"devDependencies":{},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","gitHead":"ddb373a154edf123605e09bbd7c9149ef4ec6523","bugs":{"url":"https://github.com/ssbc/ssb-msgs/issues"},"_id":"ssb-msgs@4.0.0","scripts":{},"_shasum":"6e8e487412668040043736801bde5bd94cf1c1b2","_from":".","_npmVersion":"2.12.0","_nodeVersion":"2.3.1","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"},{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"6e8e487412668040043736801bde5bd94cf1c1b2","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-4.0.0.tgz","integrity":"sha512-4EsQsPt7O2J0/phUoe7Bzs+joZMrICA5uBnYs7h/KneA5Bov4i3tsKKQqxuOlw7DS4deFdSXmHa2eDO3j0PhQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICryEL2qthlDAW7nJGAqPr28gHLYZUNwFQH+dLh4ZbomAiEAyO11g2zJ+wK39CkNHn1Yls1wxKLyaGtpf5E2WcCnBDc="}]},"directories":{}},"5.0.0":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"5.0.0","homepage":"https://github.com/ssbc/ssb-msgs","repository":{"type":"git","url":"git://github.com/ssbc/ssb-msgs.git"},"dependencies":{"ssb-ref":"^2.0.0"},"devDependencies":{"tape":"^2.12.3"},"scripts":{"test":"set -e; for t in test/*.js; do node $t; done"},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","gitHead":"a0f9001d3cfa4f8f1c475848c69e69a3fd568f12","bugs":{"url":"https://github.com/ssbc/ssb-msgs/issues"},"_id":"ssb-msgs@5.0.0","_shasum":"394829a67f2aa1b1232ff3aef89999cfacde1165","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.3.1","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"},{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"394829a67f2aa1b1232ff3aef89999cfacde1165","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-5.0.0.tgz","integrity":"sha512-GuZ0dKhCxkAjp8sjaK6DEM6aqRA6WB150xp6yEnox4Nkcp3EbpGlXQ0hY0adg5vp6DlJvfnlJG6IlLiiLTmdNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDr7Ob1rkuQxX0XsgEFLLreRvOFS547shDN/OKDHc+PGAiAKKiegMRVCAsyNEdQUDyqcow0rbVlItKU8uAF4jyjM+g=="}]},"directories":{}},"5.1.0":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"5.1.0","homepage":"https://github.com/ssbc/ssb-msgs","repository":{"type":"git","url":"git://github.com/ssbc/ssb-msgs.git"},"dependencies":{"ssb-ref":"^2.0.0"},"devDependencies":{"tape":"^2.12.3"},"scripts":{"test":"set -e; for t in test/*.js; do node $t; done"},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","gitHead":"8bb732a53909c82146fab17676078fd48874900f","bugs":{"url":"https://github.com/ssbc/ssb-msgs/issues"},"_id":"ssb-msgs@5.1.0","_shasum":"ce5f2999af9ba0fa42c9421c32ddbfa6e7253c46","_from":".","_npmVersion":"2.11.1","_nodeVersion":"2.3.0","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"dist":{"shasum":"ce5f2999af9ba0fa42c9421c32ddbfa6e7253c46","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-5.1.0.tgz","integrity":"sha512-1eHHTGf85sIjeK4f67Lr+LIoBq4jsZE0QPd4FBhi5N12Giek1FH09brGdICwx+aM+XG+5vFyjKqxElPmoIVdFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKH2xYZckC06HwwDBoyQdgvX9YizNTPMTdVRWvJPjuogIgAa/ppgkDkD4f74DvH8vOJehSAwF+zexCnMOtkxQyh3o="}]},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"},{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{}},"5.2.0":{"name":"ssb-msgs","description":"message-processing tools for secure-scuttlebutt","version":"5.2.0","homepage":"https://github.com/ssbc/ssb-msgs","repository":{"type":"git","url":"git://github.com/ssbc/ssb-msgs.git"},"dependencies":{"ssb-ref":"^2.0.0"},"devDependencies":{"tape":"^2.12.3"},"scripts":{"test":"set -e; for t in test/*.js; do node $t; done"},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","gitHead":"692267f08b3f32856cdaf90c2c4d86ed5aff4f4b","bugs":{"url":"https://github.com/ssbc/ssb-msgs/issues"},"_id":"ssb-msgs@5.2.0","_shasum":"c681da5cd70c574c922dca4f03c521538135c243","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.0","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"dist":{"shasum":"c681da5cd70c574c922dca4f03c521538135c243","tarball":"https://registry.npmjs.org/ssb-msgs/-/ssb-msgs-5.2.0.tgz","integrity":"sha512-a5SF3fnXhXhcEIT406QNPftf+9YbPWFYFABNudreB19RrE0N3JsJL7bm/eKWgVd0fXNpARZJF3f5BYYMUv6lFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAVhE2yYaTiNusSAIR/jiGaE9ykTKDvPjioS38gTCA9ZAiEA+3e/W60WfHxglQ2qx69O+jbOGc30CDKOpa8b0M0Bd0A="}]},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"},{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{}}},"readme":"# SSB Messages\n\nMessage-processing tools for secure-scuttlebutt\n\n```js\nvar mlib = require('ssb-msgs')\n```\n\n### indexLinks\n\n```\nindexLinks(msg: Object, [opts: Options], each: Function(link: Object, rel: String))\nwhere Options = { rel: String, msg: Bool/String, feed: Bool/String, ext: Bool/String }\n```\n\nTraverses a message and runs the `each` function on all found links. All `opts` fields are optional. `Opts` may also be a string, in which case it is the rel attribute\n\n```js\n// assume %msgid and @feedid a well-formed\nvar msg = {\n  foo: { link: '%msgid' },\n  bar: [{ link: '@feedid' }]\n}\nfunction print (obj, rel) {\n  console.log(rel, obj.link)  \n}\nmlib.indexLinks(msg, print)\n// => foo %msgid\n// => bar @feedid\nmlib.indexLinks(msg, 'foo', print)\n// => foo %msgid\nmlib.indexLinks(msg, { rel: 'foo' }, print)\n// => foo %msgid\nmlib.indexLinks(msg, { feed: true }, print)\n// => bar @feedid\nmlib.indexLinks(msg, { feed: '@feedid' }, print)\n// => bar @feedid\n```\n\n### links (or asLinks)\n\n```\nlinks(obj: Any, [requiredAttr: String])\n```\n\nHelper to get links from a message in a regular array form.\n\n```js\nvar msg = {\n  foo: { link: '%msgid' },\n  bar: [{ link: '@feedid' }]\n}\nmlib.links(msg.foo) // => [{ link: '%msgid' }]\nmlib.links(msg.bar) // => [{ link: '@feedid' }]\nmlib.links(msg.bar, 'feed') // => [{ link: '@feedid' }]\nmlib.links(msg.bar, 'msg') // => []\nmlib.links(msg.baz) // => []\n```\n\n### link (or asLink)\n\n```\nlink(obj: Any, [requiredAttr: String])\n```\n\nHelper to get a link from a message in a regular object form. If an array is found, will use the first element.\n\n```js\nvar msg = {\n  foo: { link: '%msgid' },\n  bar: [{ link: '@feedid' }]\n}\nmlib.link(msg.foo) // => { link: '%msgid' }\nmlib.link(msg.bar) // => { link: '@feedid' }\nmlib.link(msg.bar, 'feed') // => { link: '@feedid' }\nmlib.link(msg.bar, 'msg') // => null\nmlib.link(msg.baz) // => null\n```\n\n### isLink\n\n```\nisLink(obj: Any, [requiredAttr: String])\n```\n\nPredicate to test whether an object is a well-formed link. Returns false if given an array.\n\n```js\nvar msg = {\n  foo: { link: '%msgid' },\n  bar: [{ link: '@feedid' }]\n}\nmlib.isLink(msg.foo) // => true\nmlib.isLink(msg.bar) // => true\nmlib.isLink(msg.bar, 'feed') // => true\nmlib.isLink(msg.bar, 'msg') // => false\nmlib.isLink(msg.baz) // => false\n```\n\n### linksTo\n\n```\nlinksTo(a: Message, b: Message)\n```\n\nGet link objects pointing from `a` to `b`.\n\n```js\nmlib.linksTo(msgA, msgB) // => [{ link: '%msgB-id' }]\n```\n\n### relationsTo\n\n```\nrelationsTo(a: Message, b: Message)\n```\n\nGet relations of links pointing from `a` to `b`.\n\n```js\nmlib.relationsTo(msgA, msgB) // => ['fooRelation']\n```","maintainers":[{"email":"christianbundy@fraction.io","name":"christianbundy"},{"email":"dominic.tarr@gmail.com","name":"dominictarr"},{"email":"marak.squires@gmail.com","name":"marak"},{"email":"pfrazee@gmail.com","name":"pfraze"},{"email":"npm.cel@celehner.com","name":"cel"},{"email":"michael.williams@enspiral.com","name":"ahdinosaur"},{"email":"andre+npm@staltz.com","name":"staltz"},{"email":"whimful@gmail.com","name":"mixmix"},{"email":"arj03@protonmail.ch","name":"arj03"},{"email":"cryptix@riseup.net","name":"cryp7ix"}],"time":{"modified":"2022-11-08T10:40:45.599Z","created":"2014-11-09T18:30:07.583Z","0.1.0":"2014-11-09T18:30:09.121Z","0.1.1":"2014-11-09T18:32:16.344Z","0.2.0":"2014-11-11T18:09:07.378Z","1.0.0":"2014-12-06T00:54:18.280Z","1.1.0":"2015-01-13T16:42:48.997Z","1.1.1":"2015-01-13T16:51:22.181Z","2.0.0":"2015-01-13T21:43:19.474Z","3.0.0":"2015-03-01T21:39:00.842Z","3.1.0":"2015-03-12T04:28:05.942Z","3.1.1":"2015-03-12T04:34:40.666Z","3.1.2":"2015-06-29T18:09:35.627Z","4.0.0":"2015-07-06T00:26:16.003Z","5.0.0":"2015-07-30T15:35:32.159Z","5.1.0":"2015-10-06T16:43:31.066Z","5.2.0":"2015-11-28T18:51:34.352Z"},"readmeFilename":"README.md","homepage":"https://github.com/ssbc/ssb-msgs","repository":{"type":"git","url":"git://github.com/ssbc/ssb-msgs.git"},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"bugs":{"url":"https://github.com/ssbc/ssb-msgs/issues"},"license":"MIT"}