Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions scripts/markdown-normalizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

import fs from 'fs';

if (!process.argv.slice(1).length) {
const args = process.argv.slice(2);

if (!args.length) {
console.error('👹 Oops! Missing the filename argument.');
process.exit(1);
}

const args = process.argv.slice(1);
const filepath = args[1];
const filepath = args[0];

let fileContent: string = '';

Expand Down
Loading