This implements basic capability de/serialization
npm install primea-capability
const Capability = require('primea-capability')
const id = Buffer.alloc(20)
const cap = new Capability(id, 5)
creates a new capability given the path of the process creating it and a "tag"
Parameters
Serializes the capability
Returns Buffer
Deserializes a Buffer and returns a new instance of Capability
Parameters
raw
Buffer
Returns Object
Deserializes a capability from a buffer-pipe and returns a new instance of Capability
Parameters
p
Pipe
Returns Object