ulid / javascript

Universally Unique Lexicographically Sortable Identifier
MIT License
3.04k stars 107 forks source link

add a newline to the result to remove the percentage in the CLI output #108

Open mrwnmncd opened 3 months ago

mrwnmncd commented 3 months ago

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.

Screenshot 2024-08-18 at 11 40 01 PM