A react mixin that will update the components state on mouse hover. Designed for tooltips, popovers, and dropdowns.
published 1.1.1 9 years agosimple-timeago wrapper that returns "???" instead of throwing up if you give it something truthy that is not a Date object.
published 1.0.0 9 years agoCompile css into js code that injects styles on the browser and server safe
published 1.0.1 9 years agoInject normalize.css into browser by require("normalize.css.js"). This also returns the css code and safe to run on the server.
published 1.0.0 9 years agoWrap an event handler so that it will e.preventDefault() for you when available. (i.e. also works if you call it directly)
published 1.0.0 9 years agoEasy way to layout elements via absolute positioning
published 1.0.0 9 years agoEncode stringfacts into sortable keys. Decode keys. Make a matcher (partial encoder) to search through keys.
published 0.0.0 9 years agoMake virtual-dom widgets by using a function closure that persists it's local state between renders.
published 1.0.0 8 years agoDefine and insert CSS via javascript. This also generates unique class and id names automatically. Handy when using virtual-dom (or react) inline css as your primary styling.
published 1.4.2 8 years agoA grab bag of validation functions for react-loose-forms
published 0.2.0 8 years agoConvert a styled ansi string to react spans with classes for the styles
published 1.0.0 8 years agoAn implementation of the pico-engine targeting node.js
published 1.3.0 10 months agoGenerate KRL code given krl-ast as input. (pretty printer)
published 1.3.0 10 months agoA "friendly" robot that writes KRL code... what could go wrong?
published 3.0.0 7 years agoGiven two strings, show the lines that differ. (similar to `git diff`)
published 1.1.1 5 years agoConvert a string start and end indices to an estree loc objects.
published 2.0.0 8 years agoConvert any string (even reserved words) to a valid javascript identifier.
published 1.0.0 8 years agoUsing contra, asynchronously find a value in a collection that matches a condition.
published 1.0.0 8 years ago