Skip to content

Commit 5819648

Browse files
committed
doc: fix README.md
1 parent f025fb0 commit 5819648

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ JavaScript SDK for a-blog cms. Works in Node.js and modern browsers.
55
## Installation
66

77
```bash
8-
npm install acms-js-sdk
8+
npm install @uidev1116/acms-js-sdk
99

1010
# or
1111

12-
yarn add acms-js-sdk
12+
yarn add @uidev1116/acms-js-sdk
1313
```
1414

1515
## Usage
@@ -19,7 +19,7 @@ First, you need to create a client instance.
1919
ES Modules:
2020

2121
```js
22-
import { createClient } from 'acms-js-sdk';
22+
import { createClient } from '@uidev1116/acms-js-sdk';
2323

2424
const acmsClient = createClient({
2525
baseUrl: 'YOUR_BASE_URL',
@@ -30,7 +30,7 @@ const acmsClient = createClient({
3030
CommonJS:
3131

3232
```js
33-
const { createClient } = require('acms-js-sdk');
33+
const { createClient } = require('@uidev1116/acms-js-sdk');
3434

3535
const acmsClient = createClient({
3636
baseUrl: 'YOUR_BASE_URL',
@@ -42,7 +42,7 @@ CDN:
4242

4343
```html
4444
<script type="module">
45-
const { createClient } = 'https://unpkg.com/acms-js-sdk/dist/es/acms-js-sdk.js';
45+
const { createClient } = 'https://unpkg.com/@uidev1116/acms-js-sdk@latest/dist/es/acms-js-sdk.js';
4646
4747
const acmsClient = createClient({
4848
baseUrl: 'YOUR_BASE_URL',
@@ -214,7 +214,7 @@ You can get the path of Url Context by using utility function `acmsPath`.
214214

215215
```js
216216

217-
import { acmsPath } from 'acms-js-sdk';
217+
import { acmsPath } from '@uidev1116/acms-js-sdk';
218218

219219
const path = acmsPath({
220220
blog: 'BLOG_CODE',
@@ -261,7 +261,7 @@ interface AcmsContext {
261261
You can check if the error is `AcmsFetchError` by using utility function `isAcmsFetchError`.
262262

263263
```js
264-
import { isAcmsFetchError } from 'acms-js-sdk';
264+
import { isAcmsFetchError } from '@uidev1116/acms-js-sdk';
265265

266266
acmsClient
267267
.get({

0 commit comments

Comments
 (0)