Construct a unique ID for a bundle
npm install bare-bundle-idConstruct a unique ID for a bundle.
```
npm i bare-bundle-id
`js
const Bundle = require('bare-bundle')
const id = require('bare-bundle-id')
const bundle = new Bundle()
.write('/foo.js', "module.exports = require('./bar')", {
main: true,
imports: {
'./bar': '/bar.js'
}
})
.write('/bar.js', 'module.exports = 42')
bundle.id = id(bundle).toString('hex')
// 33824862...
`
#### const buffer = id(bundle)`
Apache-2.0