bin/inlineDocs.js
async function writeDocs (basePath, nodes) {
  Promise.all(nodes.map((node) => {
    const location = path.join(basePath, node.location.replace(srcPath, '').replace(/\.js$/, '.adoc'))
    return fs.outputFile(location, node.comments)
  }))
}
async function writeDocs (basePath, nodes) {
  Promise.all(nodes.map((node) => {
    const location = path.join(basePath, node.location.replace(srcPath, '').replace(/\.js$/, '.adoc'))
    return fs.outputFile(location, node.comments)
  }))
}
async function writeDocs ( basePath , nodes ) { Promise . all ( nodes . map ( ( node ) => { const location = path . join ( basePath , node . location . replace ( srcPath , '' ) . replace ( / \.js$ / , '.adoc' ) ) return fs . outputFile ( location , node . comments ) } ) ) }
Writes all docs to their respective files

@method writeDocs

@param  {String}  basePath
@param  {Array}  nodes

@return {void}
Writes all docs to their respective files