No Mouse Days
Ever wanted a package that disables the mouse cursor one day a week so you can test keyboard accessibility as a team? No? Well here you go anyway.
How to use
- Install the package
npm install no-mouse-days
- Import the package into your project for all times
- Import and conditionally apply it in development, if you want
if processenvNODE_ENV === 'development'import"no-mouse-days"
- Or apply it one day of the week, e.g. on Mondays
let date =let dayOfWeek = dateif dayOfWeek === 1import"no-mouse-days"
This project includes a small example that you can use to test the No Mouse Days script locally in a browser.
Go into the example directory and install dependencies:
cd example npm start
With a server successfully running, you can then visit the provided localhost URL such as