From a6c1f3a373fcc166bc12d5e094e677de9de55078 Mon Sep 17 00:00:00 2001 From: Eva Date: Thu, 26 Dec 2024 07:30:06 +0300 Subject: [PATCH] Made dmode, fmode demo values shorter in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1f3acc6..e948ec6 100644 --- a/README.md +++ b/README.md @@ -102,8 +102,8 @@ Set `options.fmode` and `options.dmode` to ensure that files/directories extract ``` js const extract = tar.extract('./my-directory', { - dmode: parseInt(555, 8), // all dirs should be readable - fmode: parseInt(444, 8) // all files should be readable + dmode: 0o555, // all dirs should be readable + fmode: 0o444 // all files should be readable }) ```