Skip to content

Commit

Permalink
rename stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcralph committed Nov 3, 2020
1 parent dc181b6 commit bdbb6d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/data/Colors.ts → lib/data/Colours.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enum colors {
enum colours {
black = 30,
red = 31,
green = 32,
Expand Down Expand Up @@ -37,4 +37,4 @@ enum colors {
bgGrey = 100,
}

export default colors;
export default colours;
10 changes: 5 additions & 5 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* @copyright David Ralph (ohlookitsderpy) 2019-2020
* @license MIT
*/
import Colors from './data/Colors';
import Colours from './data/Colours';
import Styles from './data/Styles';

/** Change the colour of the given text. (List: https://docs.derpyenterprises.org/#/leeks) */
let colors = [];
for (let c in Colors) colors[c] = (t: any) => `\x1b[${Colors[c]}m${t}\x1b[0m`;
let colours = [];
for (let c in Colours) colours[c] = (t: any) => `\x1b[${Colours[c]}m${t}\x1b[0m`;

/** Change the style of the given text. (List: https://docs.derpyenterprises.org/#/leeks) */
let styles = [];
Expand Down Expand Up @@ -80,8 +80,8 @@ export function hexBg (hex: string, t: string) {
return module.exports.rgbBg([(bigint >> 16) & 255, (bigint >> 8) & 255, bigint & 255], t);
};

module.exports.colors = colors;
module.exports.colours = colors;
module.exports.colors = colours;
module.exports.colours = colours;
module.exports.supportsColor = supports;
module.exports.supportsColour = supports;
module.exports.styles = styles;

0 comments on commit bdbb6d8

Please sign in to comment.