How to use storyboard - 10 common examples

To help you get started, we’ve selected a few storyboard 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 compactd / compactd / server / src / endpoints / scanner.ts View on Github external
}).catch((err) => {
        mainStory.error('scanner', err.message, {attach: err});
        httpEventEmitter.emit(scanError, {error: err, ok: false});
      });
github guigrpa / storyboard / packages / storyboard-cli / src / index.js View on Github external
  .on('data', (line) => mainStory.info(line))
  .on('end', () => { if (!program.server) process.exit(); });
github compactd / compactd / server / src / CompactdApplication.ts View on Github external
_write(chunk: string, enc: string, next: Function) {
        const str = chunk.toString();
        if (str && str.length) {
          mainStory.info('http', str.replace('\n', ''));
        } 
        next();
      }
    }
github guigrpa / mady / src / server / httpServer.js View on Github external
httpServer.on('listening', () => {
    mainStory.info('http', `Listening on port ${chalk.cyan.bold(port)}`);
  });
  httpServer.listen(port);
github compactd / compactd / server / src / DevApplication.ts View on Github external
log: (data) => {
          mainStory.info('webpack', data);
        }
      });
github vinz243 / cassette / src / server / features / scanner / scanner.js View on Github external
mainStory.trace('scanner', 'Added a new track', {attach: file.props});
        }).catch(err => {
          mainStory.warn('scanner', err.message);
          mainStory.trace('scanner', 'Library scan encountered an error', {attach: err});
        });
      }
      return Promise.resolve();
    case 'unlink':
      return File.findOne({path: filePath}).then((file) => {
        if (!file) {
          return Promise.resolve();
        }
        return file.remove();
      });
    case 'mkdir':
      mainStory.info('scanner', 'Scanning new dir ' + filePath);
    case 'rmdir':
      return Promise.resolve();
  }
}
const operationMapperFactory = module.exports.operationMapperFactory = (models, mediastic) => {
github compactd / compactd / server / src / features / configure / DatabaseConfigurator.ts View on Github external
async endAdminParty () {
    const node = await this.getNode();

    mainStory.info('configure', 'Ending admin party...');

    const url = `http://${
      this.opts.couchHost
    }:${this.opts.couchPort}/_node/${
      node
    }/_config/admins/${this.opts.adminUsername}`;

    mainStory.info('configure', 'PUT ' + url);

    const res: any = await fetch(url, {
        method: 'PUT',
        body: `"${this.opts.adminPassword}"`
      }).then((res) => res.json());

    mainStory.info('configure', 'CouchDB responded with', {attach: res});
  }
  getNode (): Promise {
github vinz243 / cassette / src / server / features / scanner / scanner.js View on Github external
mediastic.use((metadata, next) => {
    mainStory.trace('scanner', 'Working on '+ metadata.path);
    try {
      next();
    } catch (err) {
      mainStory.error('scanner', 'Uncaught exception', {attach: err});
    }
  });
github guigrpa / mady / src / server / httpServer.js View on Github external
httpServer.on('error', () => {
    mainStory.warn('http', `Port ${String(port)} busy`);
    port += 1;
    if (port >= initialPort + 20) {
      mainStory.error('http', 'Cannot open port (tried 20 times)');
      return;
    }
    httpServer.listen(port);
  });
  httpServer.on('listening', () => {
github compactd / compactd / server / src / endpoints / analytics.ts View on Github external
}).catch((err) => {
      res.send({ok: false, error: 'An error has occured while creating a report'});
      mainStory.error('analytics', 'An error occured', {attach: err});
    });
  });

storyboard

End-to-end, hierarchical, real-time, colorful logs and stories

MIT
Latest version published 4 years ago

Package Health Score

42 / 100
Full package analysis