Truncates text in batches by removing a specified prefix or suffix. It can also remove duplicates if required.
truncanator uses TailwindCSS (version v3.0.24) and TailwindUI.
To use Tailwind without NodeJs, you will need to install the latest version of the standalone Tailwind CLI for your OS.
# Install for arm64 macOS
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64
chmod +x tailwindcss-macos-arm64
mv tailwindcss-macos-arm64 tailwind
# Start a watcher for development
./tailwind -i assets/css/style.css -o public/css/style.css --watch
# Compile and minify the final CSS for production
./tailwind -i assets/css/style.css -o public/css/style.css --minify
If you want to auto-reload your browser on file changes, there are various NodeJS packages that can help.
Install Browsersync globally:
npm install -g browser-sync
# Ignore the output file compiled by Tailwind CLI
browser-sync start --server --ignore "public/css/style.css"
Install live-server globally:
npm install -g live-server
# Start the server and ignore the output file compiled by Tailwind CLI
live-server --ignore="public/css/style.css"
- Axe icon by Cultures icons created by Freepik - Flaticon