From 1e7c9cde7718222b4bfce2424eeedcb269c153a9 Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Sat, 7 Oct 2023 14:17:07 +0200 Subject: [PATCH] docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 276b2eb..9599d75 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ as known from sh/bash, in JavaScript. ## Example ```js -const expand = require('brace-expansion'); +import expand from 'brace-expansion'; expand('file-{a,b,c}.jpg') // => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] @@ -45,7 +45,7 @@ expand('ppp{,config,oe{,conf}}') ## API ```js -const expand = require('brace-expansion'); +import expand from 'brace-expansion'; ``` ### const expanded = expand(str)