UNPKG

synopsys

Version:

Synopsys is proof of concept datastore service. It stores facts in terms of entity attribute value triples and allows clients to subscribe to _(datomic inspired)_ queries pushing updates to them when new transactions affect results.

16 lines (13 loc) 304 B
const encoder = new TextEncoder() const decoder = new TextDecoder() /** * * @param {Uint8Array} bytes * @returns {string} */ export const fromUTF8 = (bytes) => decoder.decode(bytes) /** * @param {string} string * @returns {Uint8Array} */ export const toUTF8 = (string) => encoder.encode(string)