iterm-colors

1.0.2 • Public • Published

iterm-colors

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

Install

npm install -g iterm-colors

Theme screenshots

blazer

Screenshot

chalkboard

Screenshot

dark_pastel

Screenshot

desert

Screenshot

espresso

Screenshot

github

Screenshot

grass

Screenshot

homebrew

Screenshot

hurtado

Screenshot

idletoes

Screenshot

kibble

Screenshot

man_page

Screenshot

monokai_soda

Screenshot

neopolitan

Screenshot

novel

Screenshot

ocean

Screenshot

pro

Screenshot

red_sands

Screenshot

seafoam_pastel

Screenshot

solarized_darcula

Screenshot

solarized_dark

Screenshot

solarized_light

Screenshot

symfonic

Screenshot

terminal_basic

Screenshot

vaughn

Screenshot

zenburn

Screenshot

Example

Binary

$ iterm-colors ~/Downloads/Monokai.itermcolors
["#615d4c","#e53865","#a8ff60","#ddcf69","#6bcce6","#ef8930","#9879f9","#eeeeee","#615d4c","#e53865","#a8ff60","#ddcf69","#6bcce6","#ef8930","#9879f9","#eeeeee"]
$

Library

// 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'));
 

Library (bundle access)

// iterm-colors module/function
var bundle = require('iterm-colors/bundle.json');
 
// Github's theme
bundle.github;
 
// Monokai theme
bundle.monokai_soda;
 
...

Disclaimer

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

Readme

Keywords

none

Package Sidebar

Install

npm i iterm-colors

Weekly Downloads

1

Version

1.0.2

License

Apache v2

Last publish

Collaborators

  • aarono