From 75d05a3316929522e2dcdf8d75a73efb741541c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=8D=E7=A8=8B=E5=87=AF?= Date: Wed, 11 Jul 2018 16:05:21 +0800 Subject: [PATCH] docs(README): tweak useage --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b004458..205a6a6 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,13 @@ $ npm i sewing In TypeScript/ESM: ```js import sewing from 'sewing' +import isEmpty from 'sewing/dist/isEmpty' ``` In Node.js: ```js // You can't require whole library, it contains browser env code. -const isEmpty = require('sewing/isEmpty') +const isEmpty = require('sewing/libs/isEmpty') ``` ### Examples