Justify-align plain text using JavaScript.
Install it with npm
or your preferred package manager:
npm install @uwlajs/justify
Sample usage:
import justify from '@uwlajs/justify';
const textToBeJustified = "...";
const justifiedText = justify(textToBeJustified);
console.log(justifiedText);
Contributions are welcome. Feel free to open an issue or PR.
This project uses Conventional Commits. If you make a PR, make sure that your commit messages match this standard.
MIT.