Tizen 2.0 Release
[platform/framework/web/web-ui-fw.git] / build-tools / lib / jslint / color.js
1 function color(code, string) {
2     'use strict';
3     return "\x1b[" + code + "m" + string + "\x1b[0m";
4 }
5
6 function factory(code) {
7     'use strict';
8     return function (string) {
9         return color(code, string);
10     };
11 }
12
13 module.exports = {
14     bold : factory(1),
15     red : factory(31),
16     green : factory(32),
17     yellow : factory(33),
18     blue : factory(34),
19     grey : factory(90)
20 };