Skip to content

Commit

Permalink
Merge pull request #2 from Hephaest/master
Browse files Browse the repository at this point in the history
feat: format the output
  • Loading branch information
CodeDaraW committed Dec 4, 2020
2 parents 34f8a6d + 5050730 commit 140d1db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const {
const lines = Object.keys(detail).map((type) => {
const info = detail[type];
const tile = TitleMap[type];
const data = Object.keys(info).map((key) => `${info[key]} ${KeywordMap[type][key].slice(1)}`);
return `${tile}${data.join(' · ')}`;
const data = Object.keys(info).map((key) => `${KeywordMap[type][key].slice(1)} ${info[key]}`.padEnd(8));
return `${tile}${data.join(' ')}`;
});
await box.update({
filename: 'douban.md',
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"rootDir": "src/",
"outDir": "lib/",
"module": "commonjs",
"target": "es2015",
"target": "es2017",
"sourceMap": false,
"allowJs": false,
"moduleResolution": "node",
Expand Down

0 comments on commit 140d1db

Please sign in to comment.