Skip to content

Instantly share code, notes, and snippets.

@damieng
damieng / nsfw-watcher.js
Created October 28, 2016 18:36
Watch the filesystem using NSFW from the command line
#!/usr/bin/env node
const nsfw = require('nsfw')
const process = require('process')
const path = require('path')
if (process.argv.length == 0) {
console.log(`Usage: ${process.argv[0]} [path]`)
process.exit(0)
}