diff --git a/lib/data/Colors.ts b/lib/data/Colours.ts similarity index 94% rename from lib/data/Colors.ts rename to lib/data/Colours.ts index 412c744..9eada72 100644 --- a/lib/data/Colors.ts +++ b/lib/data/Colours.ts @@ -1,4 +1,4 @@ -enum colors { +enum colours { black = 30, red = 31, green = 32, @@ -37,4 +37,4 @@ enum colors { bgGrey = 100, } -export default colors; \ No newline at end of file +export default colours; \ No newline at end of file diff --git a/lib/index.ts b/lib/index.ts index e54de88..81b7004 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -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 = []; @@ -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; \ No newline at end of file