deps/npm/lib/init.js
function defaultName (folder, data) {
  if (data.name) return data.name
  return path.basename(folder).replace(/^node[_-]?|[-\.]?js$/g, '')
}
function defaultName (folder, data) {
  if (data.name) return data.name
  return path.basename(folder).replace(/^node[_-]?|[-\.]?js$/g, '')
}
function defaultName ( folder , data ) { if ( data . name ) return data . name return path . basename ( folder ) . replace ( / ^node[_-]?|[-\.]?js$ / g , '' ) }
sync - no io
sync - no io