Skip to content

Commit

Permalink
docs: Update imports to follow new package name
Browse files Browse the repository at this point in the history
  • Loading branch information
jokelbaf committed Sep 22, 2024
1 parent 6e146b2 commit 313b9f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ yarn add @nekolab/hanime
Here is a simple example of how you can use the library:

```ts
import { HanimeClient } from 'hanime';
import { HanimeClient } from '@nekolab/hanime';

const client = new HanimeClient();
const loginResult = await client.login('[email protected]', 'password');
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/advanced-usage/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_position: 1
Hanime supports logging for debugging purposes out of the box. You can configure logging when creating new client as shown below:

```ts
import { HanimeClient } from 'hanime';
import { HanimeClient } from '@nekolab/hanime';

const client = new HanimeClient(undefined, { enabled: true, level: 'debug' });
const loginResult = await client.login('[email protected]', 'password');
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/usage/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Later in the documentation we assume you have imported and created HanimeClient,
Use `login` method of the client to authenticate with email and password:

```ts
import { HanimeClient } from 'hanime';
import { HanimeClient } from '@nekolab/hanime';

const client = new HanimeClient();
const loginResult = await client.login('[email protected]', 'password');
Expand All @@ -43,7 +43,7 @@ console.log('Logged in as', loginResult.user.name);
If you have a session token, you can directly pass it to hanime client without needing to login:

```ts
import { HanimeClient } from 'hanime';
import { HanimeClient } from '@nekolab/hanime';

const client = new HanimeClient('...');
const info = await client.getInfo();
Expand All @@ -65,7 +65,7 @@ console.log('Logged in as', info.user.name);
Session tokens are generally valid for a long time, but they may expire. You can get expiration time of the token from client info:

```ts
import { HanimeClient } from 'hanime';
import { HanimeClient } from '@nekolab/hanime';

const client = new HanimeClient('...');
const info = await client.getInfo();
Expand Down

0 comments on commit 313b9f5

Please sign in to comment.