From 4669d2729ff9203bfaf163458d89252e1d4ea231 Mon Sep 17 00:00:00 2001 From: huiyifyj Date: Tue, 11 Apr 2023 16:01:45 +0800 Subject: [PATCH] Update doc and comments --- README.md | 3 +-- md5.d.ts | 3 +-- md5.js | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b80e6d5..6d42894 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,7 @@ npm i @xn-02f/md5 ## Usage ```javascript -const md5 = require('@xn-02f/md5'); -// import md5 from '@xn-02f/md5' +import md5 from '@xn-02f/md5' md5('xn-02f'); // => '54d30fa674d13e3598970bc9c5e2388e' ``` diff --git a/md5.d.ts b/md5.d.ts index 5b5cdd3..aa3cfde 100644 --- a/md5.d.ts +++ b/md5.d.ts @@ -5,8 +5,7 @@ * @return {string} The hexadecimal hash string that is handled and converted. * @example * ``` - * import md5 = require('@xn-02f/md5'); - * // import md5 from '@xn-02f/md5'; + * import md5 from '@xn-02f/md5'; * md5('xn-02f'); //=> '54d30fa674d13e3598970bc9c5e2388e' * ``` */ diff --git a/md5.js b/md5.js index f5a5e8b..77657ef 100644 --- a/md5.js +++ b/md5.js @@ -11,8 +11,7 @@ * @return {string} The hexadecimal hash string that is handled and converted. * @example * ``` - * const md5 = require('@xn-02f/md5'); - * // import md5 from '@xn-02f/md5'; + * import md5 from '@xn-02f/md5'; * md5('xn-02f'); //=> '54d30fa674d13e3598970bc9c5e2388e' * ``` */