Like String.prototype.replace() but attempts to match the casing of the substring being replaced. Useful when renaming mixed-case variables, refactoring code or moving hard-coded values into variables.
Repositories
jonschlinkert repositories
Replace only specific occurrences of a string. e.g. if the string exists 10 times, you can replace, say, the 3rd and 8th occurrences only, etc. Returns a new string with nth specific matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.
Run multiple regex or string find-and-replace transformations on a string in sequence, reducing the final string to the accumulated result of all transformations.
Utils for normalizing and formatting repo metadata.
Pull down a list of GitHub repos for the given user or org, and save to a local JSON file.
Regular expressions for matching node.js require statements.
Reserved words that may not be used as variables, functions, methods, or object identifiers, since ECMAScript specifies special behavior for them.
Load the resolved file paths for specified NPM modules into your node project, or into Grunt config data using Lo-Dash templates.
Resolve a directory that is either local, global or in the user's home directory.
Resolve an absolute file path from local directories or node modules.
Resolves local and global npm modules that match specified patterns, and returns a configuration object for each resolved module.
Resolve values based on a JSON schema. Supports conditionals and composition. Useful for configuration, preferences, LLM chat completions, etc.
Resolve paths to globally installed npm modules using glob patterns.
Deeply resolve promises in a value, including all properties of an object.
A tool for creating technical documents and web standards
Re-throw a template rendering-, compiling- or other processing-related error to get reporting.
Determines the files extension to use on a destination file path based on the `extname` of a source file.
Right-align the text in a string.
Right align the keys of an object.
Right align the values of a given property for each object in an array. Useful for creating text columns or tables.