Skip to content

Conversation

@bengsfort
Copy link
Owner

Adds a formatting directory to the available exported modules, initially containing a basic number formatting module. This currently includes:

  • restrictDecimals(): Restricts the given value to a certain number of decimal places, but removes trailing 0's.
  • formatDuration(): Takes a number value in milliseconds and formats it into a more human-readable string.

@bengsfort bengsfort self-assigned this Nov 12, 2025
@changeset-bot
Copy link

changeset-bot bot commented Nov 12, 2025

🦋 Changeset detected

Latest commit: 23ad2c9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bengsfort/stdlib Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@bengsfort bengsfort merged commit 11bfcf3 into main Nov 12, 2025
4 checks passed
@bengsfort bengsfort deleted the feat/formatters branch November 12, 2025 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants