Logo
Explore Help
Sign In
flynx/colors.js
1
0
Fork 0
You've already forked colors.js
mirror of https://github.com/flynx/colors.js.git synced 2025-10-28 18:40:09 +00:00
Code Issues Packages Projects Releases Wiki Activity
colors.js/safe.js

10 lines
243 B
JavaScript
Raw Normal View History

[refactor] [major] Code cleanup. Node has changed a bit since 2010. [api] Added ability to safely require colors without messing with String.prototype [api] Removed browser functionality [dist] Add travis file
2014-09-30 22:41:24 +02:00
//
// Remark: Requiring this file will use the "safe" colors API which will not touch String.prototype
//
Update safe.js Whoa, string never ends! (even though it's a comment and it doesn't matter for that, but for the documentation's sake)
2017-03-11 13:07:55 -06:00
// var colors = require('colors/safe');
[refactor] [major] Code cleanup. Node has changed a bit since 2010. [api] Added ability to safely require colors without messing with String.prototype [api] Removed browser functionality [dist] Add travis file
2014-09-30 22:41:24 +02:00
// colors.red("foo")
//
//
var colors = require('./lib/colors');
Update safe.js Whoa, string never ends! (even though it's a comment and it doesn't matter for that, but for the documentation's sake)
2017-03-11 13:07:55 -06:00
module['exports'] = colors;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 88ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API

Powered by TurnKey Linux.