From b7521f03e07e8d83a9c734a99c305a21b1a62ec6 Mon Sep 17 00:00:00 2001 From: taro <34352544+tarolling@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:35:27 -0400 Subject: [PATCH] Update README.md Changed README to include destructuring syntax from CommonJS --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 95c30b8..b4ca708 100644 --- a/README.md +++ b/README.md @@ -75,9 +75,7 @@ Node 12 and earlier are fine, as are newer versions of Node 13. **CommonJS:** ```javascript -var Mutex = require('async-mutex').Mutex; -var Semaphore = require('async-mutex').Semaphore; -var withTimeout = require('async-mutex').withTimeout; +const {Mutex, Semaphore, withTimeout} = require('async-mutex'); ``` **ES6:**