Gurshan07/moecounter.js ? reverse-engineered prompt
Reverse engineered prompt
Build me a small JavaScript library that makes pretty visual number counters for websites and profiles.
I want it to work both from npm and in the browser, so someone can either call it in code or drop in a script tag and use it right away. It should support two ways of using it, one where I pass in the number myself, and one where the counter is stored and increased on the server when people visit, like a view counter or visitor counter. Please make the output easy to use in a site, and include a few different looks or themes so the counter can match different styles.
Also add a simple demo page or example setup so it is obvious how to use it. Keep the API straightforward, include basic docs in the README, and make sure the package is ready to publish and type friendly if possible. If you need to check current docs or best practices for packaging, look them up online.