iterm-colors

Converts iTerm2's color schemes (plist files) to a JSON array useable in term.js and others

iterm-colors

Converts iTerm2's color schemes (plist files) to a JSON array useable in term.js and others

npm install -g iterm-colors

blazer

chalkboard

dark_pastel

desert

espresso

github

grass

homebrew

hurtado

idletoes

kibble

man_page

monokai_soda

neopolitan

novel

ocean

pro

red_sands

seafoam_pastel

solarized_darcula

solarized_dark

solarized_light

symfonic

terminal_basic

vaughn

zenburn

$ iterm-colors ~/Downloads/Monokai.itermcolors
["#615d4c","#e53865","#a8ff60","#ddcf69","#6bcce6","#ef8930","#9879f9","#eeeeee","#615d4c","#e53865","#a8ff60","#ddcf69","#6bcce6","#ef8930","#9879f9","#eeeeee"]
$
// Core fs module 
var fs = require('fs');
 
// iterm-colors module/function 
var icolors = require('iterm-colors');
 
// ansiColors will be an array of hex colors for each ainsi color 
// in the .itermcolors file 
var ansiColors = icolors(fs.readFileSync('SOME_FILE_PATH.itermcolors'));
 
// iterm-colors module/function 
var bundle = require('iterm-colors/bundle.json');
 
// Github's theme 
bundle.github;
 
// Monokai theme 
bundle.monokai_soda;
 
...

The original iTerm2 colorschemes (and screenshots) were sourced from here : https://github.com/mbadolato/iTerm2-Color-Schemes.