Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add modifier 'blink' #52

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions colors.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ export declare const underline: Colorize;
export declare const inverse: Colorize;
export declare const hidden: Colorize;
export declare const strikethrough: Colorize;
export declare const blink: Colorize;
1 change: 1 addition & 0 deletions colors.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const underline = init(4, 24);
export const inverse = init(7, 27);
export const hidden = init(8, 28);
export const strikethrough = init(9, 29);
export const blink = init(5, 0);

// colors
export const black = init(30, 39);
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ declare namespace kleur {
inverse: Color;
hidden: Color;
strikethrough: Color;
blink: Color;
}
}

Expand Down
1 change: 1 addition & 0 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const $ = {
inverse: init(7, 27),
hidden: init(8, 28),
strikethrough: init(9, 29),
blink: init(5, 0),

// colors
black: init(30, 39),
Expand Down
1 change: 1 addition & 0 deletions test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const CODES = {
inverse: [7, 27],
hidden: [8, 28],
strikethrough: [9, 29],
blink: [5, 0],

// colors
black: [30, 39],
Expand Down