Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glob is not be used #95

Open
ottijp opened this issue Mar 1, 2017 · 0 comments
Open

glob is not be used #95

ottijp opened this issue Mar 1, 2017 · 0 comments

Comments

@ottijp
Copy link

ottijp commented Mar 1, 2017

I doubt that glob package is imported by but not be used.

At cli.enable function In cli.js, glob is required as cli.glob but not used after that.

        case 'glob':
            cli.glob = require('glob');
            break;

In this example, wild card expansion is done by the shell. So the argument like "*.js" will not be expanded to file names.

$ node examples/glob.js *.js
[ 'cli.js', 'index.js' ]
$ node examples/glob.js "*.js"
[ '*.js' ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant