Skip to content

Instantly share code, notes, and snippets.

@yamafaktory
Created December 23, 2015 10:09
Show Gist options
  • Save yamafaktory/8d0425f68bac347e5122 to your computer and use it in GitHub Desktop.
Save yamafaktory/8d0425f68bac347e5122 to your computer and use it in GitHub Desktop.
Small utility module to find if a given argument is part of the running Node process.
;(function () {
'use strict'
/*
Small utility module to find if a given argument is part of the running Node process.
*/
module.exports = arg => process.argv.indexOf(arg) !== -1
}())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment