1.1.4 • Published 4 years ago

switch-dbi v1.1.4

Weekly downloads
8
License
ISC
Repository
github
Last release
4 years ago

DBI backend module

Node.JS port of https://github.com/lunixoid/dbibackend

Install

  npm i switch-dbi

Use:

  const eventListenerExample = (eventTitle, data) => {
    /*eventTitles = [
      'connected',
      'waitDevice',
      'proccessCmdExit',
      'proccessCmdList',
      'proccessCmdFileRange',
      'readFileRange',
      'unknownCmd',
      'error',
    ]*/
    console.log(eventTitle, data)
  };

  const DBI = require('switch-dbi');
  const dbi = new DBI(
    [
      'path/to/file1.nsp',
      'path/to/file2.nsp'
    ],
    eventListenerExample // optional
  );

  dbi
  .start() // async
  .catch(console.error);
1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago