src/dt2js_cli.js
function dt2jsCLI (ramlFile, ramlTypeName) {
  const rootFileDir = ramlFile.split(path.sep).slice(0, -1).join(path.sep)
  const ramlData = fs.readFileSync(ramlFile).toString()
  dt2js.setBasePath(rootFileDir)
  return dt2js.dt2js(ramlData, ramlTypeName)
}
function dt2jsCLI (ramlFile, ramlTypeName) {
  const rootFileDir = ramlFile.split(path.sep).slice(0, -1).join(path.sep)
  const ramlData = fs.readFileSync(ramlFile).toString()
  dt2js.setBasePath(rootFileDir)
  return dt2js.dt2js(ramlData, ramlTypeName)
}
function dt2jsCLI ( ramlFile , ramlTypeName ) { const rootFileDir = ramlFile . split ( path . sep ) . slice ( 0 , - 1 ) . join ( path . sep ) const ramlData = fs . readFileSync ( ramlFile ) . toString ( ) dt2js . setBasePath ( rootFileDir ) return dt2js . dt2js ( ramlData , ramlTypeName ) }
Just call dt2js.

@param  {string} ramlFile
@param  {string} ramlTypeName
Just call dt2js .