bin/installer.js
function (directory) {
  try {
    const content = fs.readFileSync(path.join(directory, CONFIG_EXAMPLE_FILE), 'utf8')
    if (process.env.VERBOSE) {
      console.log('You need to configure the connector in your deepstream configuration file')
    }
    if (!process.env.QUIET) {
      console.log(`Example configuration:\n${colors.grey(content)}`)
    }
  } catch (err) {
    if (!process.env.QUIET) {
      console.log('Example configuration not found')
    }
  }
}
function (directory) {
  try {
    const content = fs.readFileSync(path.join(directory, CONFIG_EXAMPLE_FILE), 'utf8')
    if (process.env.VERBOSE) {
      console.log('You need to configure the connector in your deepstream configuration file')
    }
    if (!process.env.QUIET) {
      console.log(`Example configuration:\n${colors.grey(content)}`)
    }
  } catch (err) {
    if (!process.env.QUIET) {
      console.log('Example configuration not found')
    }
  }
}
function ( directory ) { try { const content = fs . readFileSync ( path . join ( directory , CONFIG_EXAMPLE_FILE ) , 'utf8' ) if ( process . env . VERBOSE ) { console . log ( 'You need to configure the connector in your deepstream configuration file' ) } if ( ! process . env . QUIET ) { console . log ( ` \n ${ colors . grey ( content ) } ` ) } } catch ( err ) { if ( ! process . env . QUIET ) { console . log ( 'Example configuration not found' ) } } }
Prints out the config snippet of a extract connector to the stdout.
Output is indented and grey colored.

@param  {String}   directory where to lookup for CONFIG_EXAMPLE_FILE
@return {void}
Prints out the config snippet of a extract connector to the stdout . Output is indented and grey colored .