Visual demonstrations of common sorting algorithms. The interface now relies on Chart.js together with D3.js for rendering graphs, replacing the older nvd3 library. Chart.js is bundled directly with the application's code instead of being loaded via a separate script tag.
This project requires Node.js version 20 or higher. The requirement is
enforced via the engines
field in package.json
.
Install the dependencies:
npm install
Build the project with:
npm run build
Run the development build and watch for changes with:
npm run build:watch
Both commands output the bundled file into the dist/
directory which is
referenced by index.html
.
Execute the Karma test suite:
npm test
The tests run in a jsdom environment so no browser installation is required.
Run Prettier to check code style:
npm run lint
Automatically fix formatting issues with:
npm run format