Skip to content

Commit

Permalink
refactor: rename npm package to @yandex-cloud/nodejs-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Zuev committed Jan 20, 2022
1 parent 6e2c64b commit 795d541
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Yandex.Cloud SDK (nodejs)

[![npm](https://img.shields.io/npm/v/yandex-cloud.svg)](https://www.npmjs.com/package/yandex-cloud)
[![npm](https://img.shields.io/npm/v/yandex-cloud.svg)](https://www.npmjs.com/package/@yandex-cloud/nodejs-sdk)
[![License](https://img.shields.io/github/license/yandex-cloud/nodejs-sdk.svg)](https://github.com/yandex-cloud/nodejs-sdk/blob/master/LICENSE)

Need to automate your infrastructure or use services provided by Yandex.Cloud? We've got you covered.
Expand All @@ -9,7 +9,7 @@ Need to automate your infrastructure or use services provided by Yandex.Cloud? W
- nodejs >= 10

## Installation
`npm install yandex-cloud`
`npm install @yandex-cloud/nodejs-sdk`

## Getting started

Expand All @@ -22,7 +22,7 @@ running in Yandex.Cloud)
### OAuth Token

```typescript
import { Session, cloudApi, serviceClients } from 'yandex-cloud';
import { Session, cloudApi, serviceClients } from '@yandex-cloud/nodejs-sdk';

const { resourcemanager: { cloud_service: { ListCloudsRequest } } } = cloudApi;

Expand All @@ -43,7 +43,7 @@ const response = await cloudService.list(ListCloudsRequest.fromPartial({
Don't forget to assign Service Account for your Instance or Function.

```typescript
import { Session, cloudApi, serviceClients } from 'yandex-cloud';
import { Session, cloudApi, serviceClients } from '@yandex-cloud/nodejs-sdk';

const { resourcemanager: { cloud_service: { ListCloudsRequest } } } = cloudApi;

Expand All @@ -62,7 +62,7 @@ const response = await cloudService.list(ListCloudsRequest.fromPartial({
### IAM Token

```typescript
import { Session, cloudApi, serviceClients } from 'yandex-cloud';
import { Session, cloudApi, serviceClients } from '@yandex-cloud/nodejs-sdk';

const { resourcemanager: { cloud_service: { ListCloudsRequest } } } = cloudApi;

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "yandex-cloud",
"name": "@yandex-cloud/nodejs-sdk",
"version": "2.0.0-alpha.4",
"description": "Yandex Cloud SDK",
"keywords": [
Expand Down

0 comments on commit 795d541

Please sign in to comment.