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.
Files changed (3) hide show
  1. package/index.js +11 -0
  2. package/package.json +10 -4
  3. 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": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
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
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.