Displaying 1 to 20 from 22 results

sparkler - Native pattern matching for JavaScript

  •    Javascript

Sparkler is a pattern matching engine for JavaScript built using sweet.js macros, so it looks and feels like native syntax. It has no runtime dependencies and compiles down to simple ifs and fors. Sparkler overloads the function keyword as a macro (don't worry, all your old functions will still work) but implements a slightly different syntax. There's no argument list after the name or function keyword. Instead the function body is just a set of ES6 style arrow-lambdas separated by commas.

replace-string - Replace all substring matches in a string

  •    Javascript

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.

postcss-selector-matches - PostCSS plugin to transform :matches() W3C CSS pseudo class to more compatible CSS (simpler selectors)

  •    Javascript

Note that if you are doing crazy selector like p:matches(a) {} you are likely to get crazy results (like pa {}).Allows you to introduce a line break between generated selectors.




execall - Find multiple RegExp matches in a string

  •    Javascript

Instead of having to iterate over RegExp#exec, immutable, and with a nicer result format.Returns an array of objects with a match, sub-matches, and index.


contains-path - Return true if a file path contains the given path.

  •    Javascript

Return true if a file path contains the given path. As of v1.0.0, this library no longer uses regex for matching. Please do not hesitate to report any issues or regressiosn.

expand-range - Faster, bash-like range expansion

  •    Javascript

Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. Used by micromatch. This library wraps fill-range to support range expansion using .. separated strings. See fill-range for the full list of options and features.

fill-range - Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use

  •    Javascript

Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support. Expands numbers and letters, optionally using a step as the last argument. (Numbers may be defined as JavaScript numbers or strings).

frep - A find and replace utility

  •    Javascript

Find and replace utility for node.js. Transform strings by running multiple RegExp or string find-and-replace patterns on a string in sequence, reducing the final string to the accumulated result of each transformation. Patterns can be strings (or arrays of strings) or regular expressions. Replacements can be strings or functions.

matches-selector - :dress: matchesSelector helper

  •    Javascript

matches/matchesSelector is pretty hot 🔥, but has vendor-prefix baggage 👜 👝. This helper function takes care of that, without polyfilling or augmenting Element.prototype. Use matchesSelector v1 for IE8 and IE9 support.

closest - Return the closest element matching a selector up the DOM tree

  •    Javascript

closest is a polyfill for #Element.closest. The #Element.closest method returns the closest ancestor of the current element (or the current element itself) which matches the selectors given in parameter. If there isn't such an ancestor, it returns null.

highlight-words-core - Utility functions shared by react-highlight-words and react-native-highlight-words

  •    Javascript

Utility functions shared by react-highlight-words and react-native-highlight-words. MIT License - fork, modify and use however you want.

element-qsa-scope - Return elements matching a selector relative to the current node

  •    Javascript

Element QSA Scope lets you select elements relative to the current node. It is a polyfill for :scope support within the selector methods Element#querySelector, Element#querySelectorAll, Element#matches, and Element#closest. The entire script is 341 bytes when minified and gzipped.

level4 - Use W3C CSS Level 4 Modules Today with PostCSS

  •    Javascript

Use W3C CSS Level 4 Modules Today with PostCSS. Take advantage of future techniques like variables, custom selectors, color functions, and new pseudo selectors. Transform var() functions to compatible values.

gfm-code-block-regex - RegExp for gfm (GitHub Flavored Markdown) code blocks.

  •    Javascript

RegExp for gfm (GitHub Flavored Markdown) fenced code blocks. Note that if a gfm code block has a javascript block comment inside of it, and within the block comment is another gfm code block, it will fail if the block comment does not have leading stars.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.