The interface isn't great for Espruino, but it seems like it should be easy enough to make it work:
Set OE = 1 (off)
Set S0 = 0, S1 = 1 (for the low range frequency out)
S2,S3 specify the colour to check
setWatch on the output pin, and use the timestamp to work out the frequency
digitalPulse(OE,0,1) (lower OE for 1 millisecond - don't do it for long or there will be so many oscillations that Espruino won't be able to process them all)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
It looks like the datasheet for the device is here:
http://www.dfrobot.com/image/data/SEN0101/TCS3200%20TCS3210.pdf
The interface isn't great for Espruino, but it seems like it should be easy enough to make it work: