Add support for ignoring files or directories

Added this feature as it is useful when diving big node projects and you for example want to ignore all the files in node_modules.