nl_tokens: Creates a function which checks whether or not a given file should be ignored .
pl_tokens: function parseNpmignore ( basedir , filesFieldExists ) { let filePath = path . join ( basedir , ".npmignore" ) if ( ! exists ( filePath ) ) { if ( filesFieldExists ) { return null } filePath = path . join ( basedir , ".gitignore" ) if ( ! exists ( filePath ) ) { return null } } const ig = ignore ( ) ig . <mask> ( fs . readFileSync ( filePath , "utf8" ) ) return not ( ig . createFilter ( ) ) }