UNPKG

simplywatch

Version:

Watches files and upon change executes a command for each file INDIVIDUALLY with file-related params

8 lines (6 loc) 263 B
Path = require 'path' module.exports = (filePath)-> extname = Path.extname(filePath) or Path.basename(filePath) extname = extname.slice(1) require('image-extensions').includes(extname) or require('binary-extensions').includes(extname) and extname isnt 'bin'