{"repo":"Level/memory-level","free":true,"listed":false,"github":"https://github.com/Level/memory-level","clone":"git clone https://github.com/Level/memory-level.git","description":"In-memory abstract-level database for Node.js and browsers.","language":"JavaScript","stars":36,"topics":["level","abstract-level","memory","database","javascript"],"license":"MIT","category":"databases-storage","readme_excerpt":"memory-level In-memory [ abstract-level ][abstract-level] database for Node.js and browsers, backed by a fully persistent red-black tree. The successor to memdown and level-mem . :pushpin: Wondering what happened to levelup ? Visit Frequently Asked Questions. [![level badge][level-badge]](https://github.com/Level/awesome) Usage If you are upgrading: please see UPGRADING.md . API The API of memory-level follows that of abstract-level with one additional constructor option (see below). The createIfMissing and errorIfExists options of abstract-level are not relevant here. Both implicit and explicit snapshots are supported. Data is discarded when the last reference to the database is released (i.e. db = null ). Closing or reopening the database has no effect on the data. Data is not copied: when storing a Buffer value for example, subsequent mutations to that Buffer will affect the stored data too. db = new MemoryLevel([options]) Besides abstract-level options, the optional options object may contain: - storeEncoding (string): one of 'buffer' , 'view' , 'utf8' . How to store data internally. This affects which data types can be stored non-destructively. The default is 'buffer' (that means Buffer) which is non-destructive. In browsers it may be preferable to use 'view' (Uint8Array) to be able to exclude the buffer shim. Or if there's no need to store binary data, then 'utf8' (String). Regardless of the storeEncoding , memory-level supports input that is of any of the aforementione","default_branch":null,"files":null,"tree":[],"storefront":"/r/Level","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Level/memory-level/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}