Nocturnal Practitioners of Magic

    This package has been deprecated

    Author message:

    use levelup 2.0

    levelup-promise
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.2 • Public • Published

    levelup-promise

    LevelUp wrapped with Promises

    import * as levelup from 'levelup';
    import level6 from 'levelup-promise';
     
    let db = level6(levelup("./db"));
     
    async function main() {
      await db.put("foo", "hello");
      await db.put("bar", "world");
     
      let read = db.createReadStream();
     
      read.on("data", (value) => {
        console.log(value);
      });
    }
     
    main();

    Keywords

    none

    Install

    npm i levelup-promise

    DownloadsWeekly Downloads

    3

    Version

    0.1.2

    License

    none

    Last publish

    Collaborators

    • meirionhughes