mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-30 03:20:10 +00:00
[api] Added ability to safely require colors without messing with String.prototype [api] Removed browser functionality [dist] Add travis file
12 lines
390 B
JavaScript
12 lines
390 B
JavaScript
var colors = require('./colors');
|
|
module['exports'] = colors;
|
|
|
|
// Remark: By default, colors will add style properties to String.prototype
|
|
//
|
|
// If you don't wish to extend String.prototype you can do this instead and native String will not be touched
|
|
//
|
|
// var colors = require('colors/safe);
|
|
// colors.red("foo")
|
|
//
|
|
//
|
|
var extendStringPrototype = require('./extendStringPrototype')(); |