Skip to content

Commit

Permalink
Merge 55e5bfc into cd5f3ff
Browse files Browse the repository at this point in the history
  • Loading branch information
FossPrime committed Jun 3, 2021
2 parents cd5f3ff + 55e5bfc commit 6cbd825
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
63 changes: 63 additions & 0 deletions build/ansicolor.mjs
@@ -0,0 +1,63 @@
import Colors from './ansicolor.js'

/* Regenerate in Repl:
const Colors = require('ansicolor')
const reserved = [...Object.getOwnPropertyNames(Object), 'default']
const filtered = Object.getOwnPropertyNames(Colors).filter(k => !reserved.includes(k) )
filtered.forEach(k => console.log(`export const ${k} = Colors.${k}`))
console.log('export default Colors')
*/

export const nice = Colors.nice
export const parse = Colors.parse
export const strip = Colors.strip
export const ansicolor = Colors.ansicolor
export const black = Colors.black
export const bgBlack = Colors.bgBlack
export const red = Colors.red
export const bgRed = Colors.bgRed
export const green = Colors.green
export const bgGreen = Colors.bgGreen
export const yellow = Colors.yellow
export const bgYellow = Colors.bgYellow
export const blue = Colors.blue
export const bgBlue = Colors.bgBlue
export const magenta = Colors.magenta
export const bgMagenta = Colors.bgMagenta
export const cyan = Colors.cyan
export const bgCyan = Colors.bgCyan
export const lightGray = Colors.lightGray
export const bgLightGray = Colors.bgLightGray
export const bgDefault = Colors.bgDefault
export const darkGray = Colors.darkGray
export const bgDarkGray = Colors.bgDarkGray
export const lightRed = Colors.lightRed
export const bgLightRed = Colors.bgLightRed
export const lightGreen = Colors.lightGreen
export const bgLightGreen = Colors.bgLightGreen
export const lightYellow = Colors.lightYellow
export const bgLightYellow = Colors.bgLightYellow
export const lightBlue = Colors.lightBlue
export const bgLightBlue = Colors.bgLightBlue
export const lightMagenta = Colors.lightMagenta
export const bgLightMagenta = Colors.bgLightMagenta
export const lightCyan = Colors.lightCyan
export const bgLightCyan = Colors.bgLightCyan
export const white = Colors.white
export const bgWhite = Colors.bgWhite
export const bgBrightRed = Colors.bgBrightRed
export const bgBrightGreen = Colors.bgBrightGreen
export const bgBrightYellow = Colors.bgBrightYellow
export const bgBrightBlue = Colors.bgBrightBlue
export const bgBrightMagenta = Colors.bgBrightMagenta
export const bgBrightCyan = Colors.bgBrightCyan
export const bright = Colors.bright
export const dim = Colors.dim
export const italic = Colors.italic
export const underline = Colors.underline
export const inverse = Colors.inverse
export const names = Colors.names
export const rgb = Colors.rgb

export default Colors
4 changes: 4 additions & 0 deletions package.json
Expand Up @@ -17,6 +17,10 @@
"type": "git",
"url": "https://github.com/xpl/ansicolor.git"
},
"exports": {
"import": "./build/ansicolor.mjs",
"require": "./build/ansicolor.js"
},
"keywords": [
"ANSI",
"ansi to css",
Expand Down

0 comments on commit 6cbd825

Please sign in to comment.