Skip to content

Commit

Permalink
Remove comments (duplication of .d.ts and readme)
Browse files Browse the repository at this point in the history
PR-URL: #72
  • Loading branch information
tshemsedinov committed Feb 20, 2023
1 parent b47aaa9 commit 8b31ed0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions concolor.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ const ANSI = [

const esc = (code, s) => `\x1b[${code}m${s}\x1b[0m`;

// Create escape sequence from concolor style definition
// styles:string - comma separated styles
// s:string - value to stylize
const stylize = (styles, s) => {
const list = styles.split(',');
let result = s;
Expand All @@ -48,10 +45,6 @@ const stylize = (styles, s) => {
return result;
};

// Create tag function
// styles:string - wrap tag into styles
// strings:array - array of string or string
// values:array - array of string
const tag =
(styles) =>
(strings, ...values) => {
Expand All @@ -67,8 +60,6 @@ const tag =
return stylize(styles, result.join(''));
};

// Create theme tag
// tags:string - theme tags
const theme = (tags) => {
const styles = (strings, ...values) => {
const result = [strings[0]];
Expand All @@ -91,9 +82,6 @@ const theme = (tags) => {
return styles;
};

// Concolor main function
// strings:array - array of string or string
// values:array - array of string
const concolor = (strings, ...values) => {
if (typeof strings === 'string') {
return tag(strings);
Expand Down

0 comments on commit 8b31ed0

Please sign in to comment.