Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fetchte/buttron
A whole new way to button /// ctr origin
https://github.com/fetchte/buttron
Last synced: about 1 month ago
JSON representation
A whole new way to button /// ctr origin
- Host: GitHub
- URL: https://github.com/fetchte/buttron
- Owner: fetchTe
- License: mit
- Created: 2016-07-08T20:47:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-10T01:55:50.000Z (over 8 years ago)
- Last Synced: 2024-11-06T23:22:37.747Z (about 2 months ago)
- Language: CSS
- Size: 116 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# buttron
[![Build Status](https://travis-ci.org/artisin/buttron.svg?branch=master)](https://travis-ci.org/artisin/buttron)
[![NPM](https://nodei.co/npm/buttron.png?compact=true)](https://npmjs.org/package/buttron)## About
The mythical origin of ctr. Buttron is a 3435 line Stylus program that taught me how to program quite literally. In retrospect, it was a romanticly naive endeavor, but it taught me invaluable lessons and more importantly, I think I can safely claim I've created the most sophisticated Stylus program ever to grace this earth.
## Usage
Buttron is backed by 163 tests and it's intended for novelty purposes, but you can use it as you see fit. You can either plop `buttron.styl` in your Stylus project or install it via npm and pipe it through the Stylus `.use(fn)`.
```js
var stylus = require('stylus'),
buttron = require('buttron');stylus(fs.readFileSync('./example.styl', 'utf8'))
.use(buttron())
.render(function(err, css){
if (err) return console.error(err);
console.log(css);
});
```
Best, te