Why Nostr? What is Njump?
2024-07-03 00:54:38

npub1wd…fqpxp on Nostr: commit de44d76245cf90ac4e6a93c33123dc4efe6f74df Author: randymcmillan ...

commit de44d76245cf90ac4e6a93c33123dc4efe6f74df
Author: randymcmillan <[email protected]>
Date: Thu Sep 28 20:01:33 2023 -0400

gnostr.js:add

diff --git a/gnostr.js b/gnostr.js
new file mode 100755
index 000000000..351e6ae95
--- /dev/null
+++ b/gnostr.js
@@ -0,0 +1,48 @@
+#!/usr/bin/env node
+
+var shell = require('shelljs');
+
+if (!shell.which('git')) {
+ console.log(shel.which('git'));
+ shell.echo('Sorry, this script requires git');
+ shell.exit(1);
+}
+// console.log(shell.which('git'));
+if (!shell.which('gnostr')) {
+ console.log(shell.which('gnostr'));
+ shell.echo('Sorry, this script requires gnostr');
+ shell.exit(1);
+}
+// console.log(shell.which('gnostr'));
+if (!shell.which('gnostr-proxy')) {
+ console.log(shell.which('gnostr-proxy'));
+ shell.echo('Sorry, this script requires gnostr');
+ shell.exit(1);
+}
+// console.log(shell.which('gnostr-proxy'));
+if (!shell.which('gnostr-sha256')) {
+ console.log(shell.which('gnostr-sha256'));
+ shell.echo('Sorry, this script requires gnostr-sha256');
+ shell.exit(1);
+}
+// console.log(shell.which('gnostr-sha256'));
+
+var body = shell.exec('gnostr --sec $(gnostr-sha256)');
+//console.log(body);
+
+
+const { argv } = require('node:process');
+const process = require('node:process');
+const path = require('node:path');
+const { cwd } = require('node:process');
+// console.log(`cwd=${cwd()}`);
+
+// print process.argv
+argv.forEach((val, index) => {
+
+ if (`${val}` == `-h`)
+ { console.log(`HELP!!`); }
+ else
+ { console.log(`${index}: ${val}`); }
+
+});
diff --git a/package.json b/package.json
new file mode 100644
index 000000000..dda1c8e1e
--- /dev/null
+++ b/package.json
@@ -0,0 +1,34 @@
+{
+ "name": "gnostr.js",
+ "version": "0.0.1",
+ "description": "gnostr.js",
+ "main": "gnostr.js",
+ "directories": {
+ "doc": "doc",
+ "example": "examples",
+ "test": "test"
+ },
+ "scripts": {
+ "test": "./gnostr.js"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/gnostr-org/gnostr.git";
+ },
+ "keywords": [
+ "gnostr",
+ "nostr",
+ "git",
+ "node",
+ "nodejs"
+ ],
+ "author": "@randymcmillan",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/gnostr-org/gnostr/issues";
+ },
+ "homepage": "https://github.com/gnostr-org/gnostr#readme";,
+ "dependencies": {
+ "shelljs": "0.8.5"
+ }
+}
Author Public Key
npub1wdkwq92dx8yu4st29n6lw2w488qca66srrwlcvpa52hzekm5gjmqrfqpxp