democratized 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.
@@ -0,0 +1,8 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(chmod +x /Users/hr/dev/democratized/bin/democratized.js)",
5
+ "Bash(node bin/democratized.js && node bin/democratized.js --version && node bin/democratized.js --help)"
6
+ ]
7
+ }
8
+ }
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+
3
+ const args = process.argv.slice(2);
4
+
5
+ if (args.includes('--help') || args.includes('-h')) {
6
+ console.log('Usage: democratized [options]');
7
+ console.log();
8
+ console.log('Options:');
9
+ console.log(' -h, --help Show this help message');
10
+ console.log(' -v, --version Show version number');
11
+ process.exit(0);
12
+ }
13
+
14
+ if (args.includes('--version') || args.includes('-v')) {
15
+ const { version } = require('../package.json');
16
+ console.log(version);
17
+ process.exit(0);
18
+ }
19
+
20
+ console.log('democratized');
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "democratized",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "democratized": "./bin/democratized.js"
8
+ },
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "keywords": [],
13
+ "author": "",
14
+ "packageManager": "pnpm@10.20.0"
15
+ }