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

11 lines
248 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
//
Add ESLint and lint all files; add lint check to CI
2018-04-30 14:59:34 -07:00
// Remark: Requiring this file will use the "safe" colors API,
// which will not touch String.prototype.
[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
//
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: 23ms Template: 2ms
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.