Stylus-standalone is a standalone browser-ready build of the Stylus CSS preprocessor, allowing you to compile Stylus code directly in the browser without Node.js or a build step. Version 0.1.0 is the initial release, and the package appears to be experimental with no further updates. It provides a single script tag inclusion via CDN, making it easy to experiment with Stylus in HTML. However, it lacks TypeScript definitions, active maintenance, and common developer tooling. Compared to the official stylus package, this is a minimal wrapper that exposes the compiler globally, suitable only for quick prototyping or educational use.
npm install stylus-standaloneNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates in-browser Stylus compilation using a script tag and the global stylus object with callback.
Consider using the official stylus package with a build tool.
Wrap calls in a promise: new Promise((resolve, reject) => stylus.render(str, opts, (e,r) => e ? reject(e) : resolve(r)))
Use stylus package via npm instead.
Ensure <script src="https://unpkg.com/stylus-standalone"></script> is placed before your code.
Use stylus.render() directly, not stylus().render().
Always provide a callback: stylus.render(str, opts, (err, css) => {...})No dependency data recorded yet.