Skip to content

Commit

Permalink
[docs]update example files to use 'normal include'
Browse files Browse the repository at this point in the history
  • Loading branch information
unikounio committed Mar 13, 2024
1 parent e910914 commit 04a4451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions example/parse.js
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);
3 changes: 1 addition & 2 deletions example/parse.mjs
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);

0 comments on commit 04a4451

Please sign in to comment.