Skip to content

Commit

Permalink
[Docs]add sample files for ECMAScript
Browse files Browse the repository at this point in the history
  • Loading branch information
unikounio committed Mar 11, 2024
1 parent 24a4bc7 commit 3b103aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions example/parse.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict';

// import minimist from 'minimist'; // (normal include)
import minimist from '../index.js'; // include minimist in git clone of minimist repo

const argv = minimist(process.argv.slice(2));
console.log(argv);

0 comments on commit 3b103aa

Please sign in to comment.