1
0
mirror of https://github.com/thangisme/notes.git synced 2025-09-24 05:24:20 -04:00

Initial commit

This commit is contained in:
Patrick Marsceill
2017-03-09 13:16:08 -05:00
commit b7b0d0d7bf
4147 changed files with 401224 additions and 0 deletions

17
node_modules/css-color-names/stringify.js generated vendored Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env node
/**
* given a file, or data over stdin,
* split it on newlines and emit a json object kv
*/
var fs = require('fs');
var file = process.argv[2] || '/dev/stdin';
var arr = fs.readFileSync(file, 'utf-8').trim().split('\n');
var ret = {};
arr.forEach(function(line) {
var s = line.split(' ');
ret[s[0]] = s[1];
});
console.log(JSON.stringify(ret, null, 2));