Dorian 0d073fa89e Add comprehensive installation and setup documentation
- Add GETTING_STARTED.md with quick start guide and development modes
- Add INSTALL.sh automated installation script
- Add INSTALLATION_CHECKLIST.md, INSTALLATION_SUCCESS.md, and INSTALLATION_SUMMARY.md
- Add QUICK_REFERENCE.md for common commands
- Add SETUP_GUIDE.md with detailed setup instructions
- Update README.md with improved project overview
- Add did-wallet app dependencies and node_modules
2026-01-27 17:18:21 +00:00

15 lines
338 B
JavaScript

'use strict'
const textEncoder = new TextEncoder()
module.exports = function (data) {
if (data instanceof Uint8Array) {
return data
} else if (data instanceof ArrayBuffer) {
return new Uint8Array(data)
} else {
// Non-binary data stored with an old version (level-js < 5.0.0)
return textEncoder.encode(data)
}
}