https://github.com/fiatjaf/nak now accepts human-readable date inputs to --ts, --since and --until:

~> nak event -ts 'two weeks ago' -c 'I bet Trump will dodge a bullet one of these days'

~> nak req -k 1 --since 'a month ago' --until 'July 1st'

Also it will automatically use a private key from NOSTR_PRIVATE_KEY if that is available in your environment, thanks to nostr:npub10npj3gydmv40m70ehemmal6vsdyfl7tewgvz043g54p0x23y0s8qzztl5h and nostr:npub1937vv2nf06360qn9y8el6d8sevnndy7tuh5nzre4gj05xc32tnwqauhaj6.

Reply to this note

Please Login to reply.

Discussion

nak is really useful

nak is really great and the only command line toolbox ive found that supports NIP42 auth. #nostrnerds

it can also do cool stuff like linux pipes to download/rebroadcast event profiles or relay lists.

nostr:nevent1qqszg4gf80rwlw3pyhaehrmwjp4kj2zrpg2qq8yvxteeaeq6fywzl2cpzemhxue69uhkyetkduhxummnw3erztnrdakj7q3q80cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsxpqqqqqqzhr6js4