Skip to content

Commit

Permalink
Example simplified, since we discuss arguments @ API
Browse files Browse the repository at this point in the history
  • Loading branch information
opensoars committed Nov 24, 2014
1 parent 90d8a79 commit 84b73a9
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,7 @@ Where `text` is the string or object to style, `color` is an optional color stri
```js
var cls = require('opensoars_cls');

var styled_string = cls(
// Text to style
'Hello, world!',

// Optional text color
'red',

// Optional text style(s), can be a string or an array with strings
['bold', 'underline']
);
var styled_string = cls('Hello, world!', 'red', ['bold', 'underline']);

console.log(styled_string);
```
Expand Down

0 comments on commit 84b73a9

Please sign in to comment.