- make a github repository and put your script there.
- Write a readme, include a test script and a minimal example.
- post it to hacker news, reddit, twitter. You can also write a medium post or Hashnode story/news.
I'll be very honest, if you are not known in the community you are making script for, it very very very difficult to get significant attention simply because bandwagon effect. To break the bandwagon effect, you either need to:
- be someone known etc.
- make script for an extremely general use cases (something for general web apps, css, general stuff like that)
Good luck for your work if it solves a 'niche' issue.