mirror of
https://github.com/ivuorinen/base-configs.git
synced 2026-03-22 21:02:18 +00:00
chore(docs): better readme
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
const configurationPaths = require('../lib/configuration-paths')
|
||||
|
||||
const configItems = configurationPaths('[module name]')
|
||||
const configItems = configurationPaths('`[module name]`')
|
||||
const longestLine = configItems.reduce((a, b) => (a.length > b.length ? a : b)).length
|
||||
|
||||
const mdTable = configItems.map(file => {
|
||||
@@ -10,6 +10,8 @@ const mdTable = configItems.map(file => {
|
||||
return `| ${file}${' '.repeat(diff)} |`
|
||||
})
|
||||
|
||||
console.log('# Configuration files\n')
|
||||
|
||||
const header = 'Searched configuration files'
|
||||
console.log('| ' + header + ' '.repeat(longestLine - header.length) + ' |')
|
||||
console.log('| ' + '-'.repeat(longestLine) + ' |')
|
||||
|
||||
Reference in New Issue
Block a user