calculatoropenerapp 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +11 -0
- package/package.json +10 -4
- package/README.md +0 -3
package/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const { exec } = require('child_process');
|
|
2
|
+
|
|
3
|
+
// Executes the Windows Calculator command
|
|
4
|
+
exec('calc', (error) => {
|
|
5
|
+
if (error) {
|
|
6
|
+
console.error(`Error opening calculator: ${error.message}`);
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
console.log('Calculator opened successfully!');
|
|
10
|
+
});
|
|
11
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "calculatoropenerapp",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Opens your calculator app",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node index.js"
|
|
8
|
+
},
|
|
9
|
+
"keywords": ["utils", "optimize"],
|
|
10
|
+
"author": "Jane Williams",
|
|
11
|
+
"license": "ISC"
|
|
12
|
+
}
|
package/README.md
DELETED