#ulid #timestamp #generate #parser #unix-timestamp #print #seconds

app ulid-cli

A very simple CLI to generate and parse ULIDs

13 releases

0.1.12 Jan 29, 2024
0.1.11 Jan 29, 2024
0.1.7 Apr 29, 2023

#966 in Command line utilities

Download history 26/week @ 2024-01-24 2/week @ 2024-01-31 5/week @ 2024-02-21 22/week @ 2024-02-28 13/week @ 2024-03-27 31/week @ 2024-04-03 183/week @ 2024-04-17

183 downloads per month

WTFPL license

6KB
85 lines

A very simple CLI to generate and parse ULIDs

Usage: ulid [OPTIONS] [TIMESTAMP_OR_ULID]

Arguments:
  [TIMESTAMP_OR_ULID]
          UNIX timestamp in *seconds* or ULID
          
          If you provide a ULID, it will print the timestamp in milliseconds. Otherwise, it will print the ULID based on timestamp you provide.

Options:
  -n, --count <COUNT>
          Amount of ULIDs to generate
          
          [default: 1]

  -o, --output <FILENAME>
          Write output to filename if it is provided

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

Dependencies

~2.2–3.5MB
~57K SLoC