mirror of
https://github.com/Yonle/bostr.git
synced 2025-03-17 13:22:49 +01:00
code: apply use strict in js codes
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
7ca2569001
commit
d589c034e2
10
.npmignore
Normal file
10
.npmignore
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
img
|
||||||
|
img/*
|
||||||
|
Dockerfile
|
||||||
|
compose.yaml
|
||||||
|
hexconverter.js
|
||||||
|
.dockerignore
|
||||||
|
.github
|
||||||
|
.github/*
|
||||||
|
node_modules
|
||||||
|
package-lock.json
|
1
auth.js
1
auth.js
@ -1,3 +1,4 @@
|
|||||||
|
"use strict";
|
||||||
const { validateEvent, verifyEvent } = require("nostr-tools");
|
const { validateEvent, verifyEvent } = require("nostr-tools");
|
||||||
const { authorized_keys, private_keys } = require(process.env.BOSTR_CONFIG_PATH || "./config");
|
const { authorized_keys, private_keys } = require(process.env.BOSTR_CONFIG_PATH || "./config");
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
"use strict";
|
||||||
const { version } = require("./package.json");
|
const { version } = require("./package.json");
|
||||||
const { nip19 } = require("nostr-tools")
|
const { nip19 } = require("nostr-tools")
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
"use strict";
|
||||||
const { nip19 } = require("nostr-tools");
|
const { nip19 } = require("nostr-tools");
|
||||||
const argv = process.argv.slice(2);
|
const argv = process.argv.slice(2);
|
||||||
|
|
||||||
if (!argv.length) return console.log("Usage: node hexconverter.js <npub....|nsec....> ....");
|
if (!argv.length) return console.log("Usage: node hexconverter.js <npub....|nsec....> ....");
|
||||||
|
|
||||||
for (i of argv) {
|
for (const i of argv) {
|
||||||
console.log(nip19.decode(i).data);
|
console.log(nip19.decode(i).data);
|
||||||
}
|
}
|
||||||
|
1
index.js
1
index.js
@ -1,3 +1,4 @@
|
|||||||
|
"use strict";
|
||||||
const config = require(process.env.BOSTR_CONFIG_PATH || "./config");
|
const config = require(process.env.BOSTR_CONFIG_PATH || "./config");
|
||||||
const cluster = require("cluster");
|
const cluster = require("cluster");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user