smallhelm
Compile css into js code that injects styles on the browser and server safe
published 1.0.1 9 years agoStore data as entity attribute values in memory. Fast queries and manipulation of state.
published 0.1.1 9 years agoGet text excerpt that points to a given line and column number
published 1.0.0 9 years agoMount an HTML5 canvas to the full width and height of the web page. When the page is resized the canvas resizes too.
published 0.1.0 9 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 agoLightweight json logger. Works great with systemd, heroku, or lambda.
published 3.0.1 5 years agoTurn .less files into isomorphic (browser and node) .js - i.e. require('./somefile.less.js');
published 2.0.0 7 years agoStore immutable "facts" and query them with datalog.
published 2.0.0 a year agoStore any string into level, and get a collision free hash of that value that you can use in an index or something.
published 0.1.2 9 years agoMinimal api for immutable (copy on write) datastructures in javascript.
published 0.2.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 agoRun multiple package.json scripts in parallel (for development)
published 1.1.1 5 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 agosimply pass in two callbacks, one that get's called at a fixed time step i.e. 60 fps, the other is called on every animation frame
published 0.1.0 9 years agotokenize any text stream given some basic regex rules to match tokens
published 2.0.1 6 years agoEasy way to layout elements via absolute positioning
published 1.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 agoEncode stringfacts into sortable keys. Decode keys. Make a matcher (partial encoder) to search through keys.
published 0.0.0 8 years ago