readNote
Read the contents of a note
| param | type [= default] | description |
|---|---|---|
| fs | FsClient | a file system client |
| dir | string | The working tree directory path |
| gitdir | string = join(dir,'.git') | The git directory path |
| ref | string | The notes ref to look under |
| oid | string | The SHA-1 object id of the object to get the note for. |
| cache | object | a cache object |
| return | Promise<Uint8Array> | Resolves successfully with note contents as a Buffer. |
Tip: If you need a clean slate, expand and run this snippet to clean up the file system.
window.fs = new LightningFS('fs', { wipe: true })
window.pfs = window.fs.promises
console.log('done')