When installed globally via npm, yarn, or bun, the output returns a ULID but with a percentage at the end as it uses process.stdout.write instead of the common console.log. This, however, does not append a new line insertion which explains why there is a percent sign at the ened of every result.
As a fix, a new line character at the end of the write function is inserted to omit the percent sign and return the generated ULID only.
When installed globally via npm, yarn, or bun, the output returns a ULID but with a percentage at the end as it uses
process.stdout.write
instead of the commonconsole.log
. This, however, does not append a new line insertion which explains why there is a percent sign at the ened of every result.As a fix, a new line character at the end of the write function is inserted to omit the percent sign and return the generated ULID only.