From 7eca1f9c685431f447a139cc8593a321b8115e15 Mon Sep 17 00:00:00 2001 From: Kasper Christensen Date: Thu, 24 Aug 2023 13:28:28 +0200 Subject: [PATCH] fix bug in example, changed mtimeMS to mtimeMs PR-URL: https://github.com/isaacs/node-glob/pull/546 Credit: @fALKENdk Close: #546 Reviewed-by: @isaacs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1bde1494..9f6e80fe 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ g3.stream().on('data', path => { const results = await glob('**', { stat: true, withFileTypes: true }) const timeSortedFiles = results - .sort((a, b) => a.mtimeMS - b.mtimeMS) + .sort((a, b) => a.mtimeMs - b.mtimeMs) .map(path => path.fullpath()) const groupReadableFiles = results