Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
It's a tiny utility which just listen to file system events(like add/update/remove) and run some command once the such event is triggered.
$ yarn global add expatr
# -or-
$ npm i -g expatr
$ expatr --filter=newfile.txt rm newfile.txt
$ touch newfile.txt
$ cat newfile.txt
cat: can't open 'newfile.txt': No such file or directory
The 'expatr' supports the next options:
-t --timeout - when the timeout is reached, shutdown without the command execution
-p --poll - use operating system(nix/macos) facilities to be notified about file system events
-i --ignore - use simple pattern to ignore some paths
-f --filter - use regex to filter paths which could cause command execution
The rest arguments will be assumed as the command and its arguments. All stdin/stdout/stderr streams is piped from/to the child process. The child process exit code will be forwarded as an exit code of the 'expatr'.
MIT License - see the LICENSE for more details.
FAQs
An essential tool to react on file system events
The npm package expatr receives a total of 0 weekly downloads. As such, expatr popularity was classified as not popular.
We found that expatr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.