{"repo":"sindresorhus/gulp-changed","free":true,"listed":false,"github":"https://github.com/sindresorhus/gulp-changed","clone":"git clone https://github.com/sindresorhus/gulp-changed.git","description":"Only pass through changed files","language":"JavaScript","stars":737,"topics":["gulp-plugin","nodejs","javascript"],"license":"MIT","category":"dev-tools","readme_excerpt":"gulp-changed Only pass through changed files No more wasting precious time on processing unchanged files. By default it's only able to detect whether files in the stream changed. If you require something more advanced like knowing if imports/dependencies changed, create a custom comparator, or use another plugin. Install Usage API changed(destination, options?) destination Type: string Function Destination directory. Same as you put into gulp.dest() . This is needed to be able to compare the current files with the destination files. Can also be a function returning a destination directory path. options Type: object cwd Type: string \\ Default: process.cwd() Working directory the folder is relative to. extension Type: string Extension of the destination files. Useful if it differs from the original, like in the example below: hasChanged Type: Function \\ Default: compareLastModifiedTime Function that determines whether the source file is different from the destination file. Built-in comparators Named imports: - compareLastModifiedTime - Compare modification times (default) - compareContents - Compare file contents (only useful for files that are copied without transformation) Example You can also specify a custom comparator function, which will receive the following arguments: - sourceFile (Vinyl file object) - destinationPath (string) - The destination for sourceFile as an absolute path The function is expected to return sourceFile Promise if it passes some comparison or undefi","default_branch":null,"files":null,"tree":[],"storefront":"/r/sindresorhus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sindresorhus/gulp-changed/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}