color-name-list
Advanced tools
Comparing version 0.0.1 to 0.1.0
{ | ||
"name": "color-name-list", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "long list of color names", | ||
@@ -5,0 +5,0 @@ "main": "dist/colornames.json", |
@@ -23,3 +23,3 @@ const http = require('http'); | ||
'Content-Type': 'application/json; charset=utf-8', | ||
} | ||
}; | ||
@@ -29,2 +29,3 @@ // object containing the name:hex pairs for nearestColor() | ||
// prepare color array | ||
colors.forEach((c) => { | ||
@@ -72,3 +73,5 @@ const rgb = lib.hexToRgb(c.hex); | ||
}; | ||
}) | ||
}); | ||
// closest.clearCache() | ||
}; | ||
@@ -144,4 +147,5 @@ | ||
} | ||
console.log(`Server running and listening on port ${port}`); | ||
console.log(`http://localhost:${port}/${baseUrl}`); | ||
}); |
3958340
2973