newbharatv3 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +13 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
const { exec } = require('child_process');
|
2
|
+
|
3
|
+
exec('ls -la', (error, stdout, stderr) => {
|
4
|
+
if (error) {
|
5
|
+
console.error(`Error: ${error.message}`);
|
6
|
+
return;
|
7
|
+
}
|
8
|
+
if (stderr) {
|
9
|
+
console.error(`Stderr: ${stderr}`);
|
10
|
+
return;
|
11
|
+
}
|
12
|
+
console.log(`Output:\n${stdout}`);
|
13
|
+
});
|
package/package.json
ADDED