Skip to content

Commit f8bf476

Browse files
committed
min viable prod
1 parent 5d9ad27 commit f8bf476

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

implement-shell-tools/cat/cat.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { promises as fs } from "node:fs";
2+
import process from "node:process";
3+
4+
const path = process.argv.slice(2)[0];
5+
const myFile = await fs.readFile(path, "utf-8");
6+
7+
console.log(myFile);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "cat",
3+
"version": "1.0.0",
4+
"description": "You should already be familiar with the `cat` command line tool.",
5+
"main": "cat.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"keywords": [],
10+
"author": "",
11+
"license": "ISC",
12+
"type": "module"
13+
}

0 commit comments

Comments
 (0)