Displaying 1 to 8 from 8 results


A lightweight jQuery plugin to prettify your select elements without replacing their default behaviour.

replace-string - Replace all substring matches in a string

Similar to String#replace(), but supports replacing multiple matches. You could achieve something similar by putting the string in a RegExp constructor with the global flag and passing it to String#replace(), but you would then have to first escape the string anyways.Returns a new string with all needle matches replaced with replacement.

level-filesystem - Full implementation of the fs module on top of leveldb

If any of the methods do not behave as you would expect please add a test case or open an issue.When you get an error in a callback it is similar to what you get in Node core fs.

shader-reload - An interface for reloading GLSL shaders on the fly.

This is an experimental interface for live shader reloading in ThreeJS, regl, and other WebGL frameworks. This means you can edit your GLSL shader files without re-starting your entire application state. Works with regular strings, template strings, and/or transforms like brfs and glslify. Handles errors with a client-side popup that disappears on subsequent reloads.See this tweet for a longer video.

Pinch - String.replace for JavaScript objects (and JSON).

Pinch is a small JavaScript utility which is able to replace any data in a JavaScript object (or JSON). You just need to provide a key (for instance users[0].name) in a dot notation or a square bracket notation and a replacement. The replacement can be a string or a function to be called for each match. To be honest, in the first example Pinch is overkill. Pinch is very useful for replacing multiple keys, e.g. converting some values to a number. See the following example.