From 3b103aa8c42f079ed7c5f66a349d33dd4c7d0c91 Mon Sep 17 00:00:00 2001 From: unikounio Date: Mon, 11 Mar 2024 17:37:17 +0900 Subject: [PATCH] [Docs]add sample files for ECMAScript --- example/parse.mjs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 example/parse.mjs diff --git a/example/parse.mjs b/example/parse.mjs new file mode 100644 index 0000000..55d488d --- /dev/null +++ b/example/parse.mjs @@ -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);