Extract a snippet of code from a string.
Repository
Repository di jonschlinkert
Like other checkers, returns true if `value` is falsey. Strings, arrays and `arguments` objects with a length of `0`, and objects with no own enumerable properties are considered falsey. Will also check against user-defined "special cases".
Log things, prefixed with a timestamp
Download files using presets.
Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.
Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.
Get the basename of a filepath excluding extension.
File system utils for normalizing things like eol, encoding and BOM.
Read a glob of files, dynamically choosing the reader or requiring the files based on the file extension.
Set the `stat` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.
Resolves the realpath for symlinks, and exposes the `stat` property on a `file` object. Abstraction from vinyl-fs to support non-stream or stream usage.
WIP NOT READY FOR USE! Git-backed file storage and versioning, with i18n support
Filter functions for files.
DEPRECATED: use https://github.com/jonschlinkert/normalize-config instead
Fill an array to the given length by repeating its elements. This is a very fast implementation.
Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.
Iterates over the elements in an array, returning an array with only the elements for which the callback returns truthy.
Recursively read directories and return a list of files, filtered to have only the files for which the (optional) filter function returns `true`. Sync and async.
Filter an array to have only function values, or an object to have only properties with function values.
Filter the keys of an object using glob patterns.