https://github.com/openstyles/stylus-lang-bundle
Browser friendly version of Stylus Language
https://github.com/openstyles/stylus-lang-bundle
Last synced: 7 months ago
JSON representation
Browser friendly version of Stylus Language
- Host: GitHub
- URL: https://github.com/openstyles/stylus-lang-bundle
- Owner: openstyles
- License: mit
- Created: 2018-07-20T15:57:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-01-04T04:35:29.000Z (over 1 year ago)
- Last Synced: 2025-01-31T10:51:11.768Z (over 1 year ago)
- Language: JavaScript
- Size: 475 KB
- Stars: 6
- Watchers: 7
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stylus Language Bundle
This repository bundles [Stylus language compiler](https://github.com/stylus/stylus) into a single file that can be used in the browser.
The current version of the compiler is 0.58.1.
## Live demo
https://raw.githack.com/openstyles/stylus-lang-bundle/master/demo/
## Install
Via [npm](https://npmjs.org/):
```bash
$ npm install stylus-bundle
```
Or via [unpkg CDN](https://unpkg.com/):
```html
```
## Usage
```js
// stylus-renderer.min.js exports a single class `StylusRenderer` to global
function render(input) {
try {
return new StylusRenderer(input).render();
} catch (err) {
console.error(err);
}
}
```
## Home page
Home page for this program with examples, documentation and a live demo: http://stylus-lang.com/
## Changelog
* 0.58.1 (Jun 23, 2022)
- Bump stylus-lang to 0.58.1