UNPKG

simplywatch

Version:

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

7 lines (6 loc) 169 B
path = require 'path' module.exports = (target)-> params = path.parse(target) params.path = path.resolve(target) params.dir = path.resolve(params.dir) return params