Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "node-nodejs-basics",
"version": "1.0.0",
"description": "",
"main": "index.js",
"description": "This repository is the part of nodejs-assignments https://github.com/AlreadyBored/nodejs-assignments",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/cp/cp.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const spawnChildProcess = () => {
export const spawnChildProcess = async (args) => {
// Write your code here
};
2 changes: 1 addition & 1 deletion src/cp/files/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ console.log(`Arguments: ${JSON.stringify(arguments)}`);
const echoInput = (chunk) => {
const chunkStringified = chunk.toString();
if (chunkStringified.includes('CLOSE')) process.exit(0);
process.stdout.write(`Received from Node.js: ${chunk.toString()}\n`)
process.stdout.write(`Received from master process: ${chunk.toString()}\n`)
};

process.stdin.on('data', echoInput);
2 changes: 1 addition & 1 deletion src/fs/copy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const copy = () => {
export const copy = async () => {
// Write your code here
};
2 changes: 1 addition & 1 deletion src/fs/create.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const create = () => {
export const create = async () => {
// Write your code here
};
2 changes: 1 addition & 1 deletion src/fs/delete.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const remove = () => {
export const remove = async () => {
// Write your code here
};
2 changes: 1 addition & 1 deletion src/fs/list.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const list = () => {
export const list = async () => {
// Write your code here
};
2 changes: 1 addition & 1 deletion src/fs/read.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const read = () => {
export const read = async () => {
// Write your code here
};
2 changes: 1 addition & 1 deletion src/fs/rename.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const rename = () => {
export const rename = async () => {
// Write your code here
};
2 changes: 1 addition & 1 deletion src/hash/calcHash.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const calculateHash = () => {
export const calculateHash = async () => {
// Write your code here
};
2 changes: 1 addition & 1 deletion src/streams/read.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const read = () => {
export const read = async () => {
// Write your code here
};
2 changes: 1 addition & 1 deletion src/streams/transform.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const transform = () => {
export const transform = async () => {
// Write your code here
};
2 changes: 1 addition & 1 deletion src/streams/write.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const write = () => {
export const write = async () => {
// Write your code here
};
2 changes: 1 addition & 1 deletion src/wt/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const performCalculations = () => {
export const performCalculations = async () => {
// Write your code here
};
2 changes: 1 addition & 1 deletion src/zip/compress.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const compress = () => {
export const compress = async () => {
// Write your code here
};
2 changes: 1 addition & 1 deletion src/zip/decompress.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const decompress = () => {
export const decompress = async () => {
// Write your code here
};