-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs]update example files to use 'normal include'
- Loading branch information
Showing
2 changed files
with
2 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
'use strict'; | ||
|
||
// const minimist = require('minimist'); // (normal include) | ||
const minimist = require('../'); // include minimist in git clone of minimist repo | ||
|
||
const argv = minimist(process.argv.slice(2)); | ||
const argv = require('minimist')(process.argv.slice(2)); | ||
console.log(argv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
'use strict'; | ||
|
||
// import minimist from 'minimist'; // (normal include) | ||
import minimist from '../index.js'; // include minimist in git clone of minimist repo | ||
import minimist from 'minimist'; | ||
|
||
const argv = minimist(process.argv.slice(2)); | ||
console.log(argv); |