newbharatv3 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +13 -0
  2. 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
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "newbharatv3",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall" : "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }