Skip to content

Commit

Permalink
auto-enabled colors
Browse files Browse the repository at this point in the history
  • Loading branch information
nooitaf committed Mar 8, 2016
1 parent 85a8d5d commit d3b29cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Meteor _Server Only_ wrapper for [Colors.js](https://github.com/Marak/colors.js

# Usage

## Enable colorful output
## Enable or disable colorful output
````javascript
colors.enabled = true
colors.enabled = true // default
````
## Output colors
````javascript
Expand Down
7 changes: 4 additions & 3 deletions export.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
this.colors = Npm.require('colors');
colors = this.colors;
delete this.colors;
this.colors = Npm.require('colors')
this.colors.enabled = true
colors = this.colors
delete this.colors
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
summary: "Add colors to strings using Colors.js",
version: "1.1.2",
version: "1.1.2_1",
name: "nooitaf:colors",
git: "https://github.com/nooitaf/meteor-colors.git"
});
Expand Down

1 comment on commit d3b29cb

@zixuan75
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like an infinite sign...well, in math.

Please sign in to comment.