From 04a4451365e2d5b31127963ed1dd10a24594efbc Mon Sep 17 00:00:00 2001 From: unikounio Date: Wed, 13 Mar 2024 17:03:40 +0900 Subject: [PATCH] [docs]update example files to use 'normal include' --- example/parse.js | 5 +---- example/parse.mjs | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/example/parse.js b/example/parse.js index 3ec4ef9..39ed4c7 100644 --- a/example/parse.js +++ b/example/parse.js @@ -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); diff --git a/example/parse.mjs b/example/parse.mjs index 55d488d..d30db57 100644 --- a/example/parse.mjs +++ b/example/parse.mjs @@ -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);