How to use the level-ws function in level-ws

To help you get started, we’ve selected a few level-ws examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github polkadot-js / common / packages / trie-db-old / src / CheckpointTrie.ts View on Github external
return new Promise((resolve) => {
          if (!db.createWriteStream) {
            db = levelws(db);
          }

          this
            // @ts-ignore FIXME, we need to properly check the full file
            .createScratchReadStream(scratch)
            // @ts-ignore FIXME, we need to properly check the full file
            .pipe(
              // @ts-ignore FIXME, we need to properly check the full file
              db.createWriteStream(encoder.options)
            )
            .on('close', resolve);
        });
      })

level-ws

A basic writable stream for abstract-level databases

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis

Popular level-ws functions