1.0.2 • Published 10 years ago

iterm-colors v1.0.2

Weekly downloads
1
License
-
Repository
github
Last release
10 years ago

itermcolors-json

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

Install

npm install -g iterm-colors

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

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.1.2

10 years ago