@azure/ms-rest-azure-js

中文文档
2.1.0发布于 2021/01/27MITTypeScriptESM + CJS近 30 天下载 118.5万

Isomorphic Azure client runtime for Typescript/node.js/browser javascript client libraries generated using AutoRest

此软件包已被标记为弃用

This package has been deprecated in favor of the new [Azure SDK for JavaScript](https://github.com/azure/azure-sdk-for-js). The long running operation support is provided by the @azure/core-lro package (https://github.com/Azure/azure-sdk-for-js/tree/dc5f9743b05ea78f938eba31cbe704150889490c/sdk/core/core-lro).

原始使用文档
文档目录5 节
  1. Requirements
  2. Installation
  3. Execution
  4. node.js
  5. In the browser

ms-rest-azure-js Build Status

Azure Runtime for isomorphic javascript libraries (that work in the browser and node.js environemnt) generated via Autorest.

Requirements

  • node.js version > 6.x
  • npm install -g typescript

Installation

  • After cloning the repo, execute npm install

Execution

node.js

  • Set the subscriptionId and token
  • Run node samples/node-sample.js

In the browser

  • Set the subscriptionId and token and then run
  • Open index.html file in the browser. It should show the response from GET request on the storage account. From Chrome type Ctrl + Shift + I and you can see the logs in console.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

版本与发布记录

@azure/ms-rest-azure-js 共发布 22 个版本,首次发布于 2018/11/13;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.4.02021/02/035 年前
2.1.0latest2021/01/275 年前
2.0.22021/01/065 年前
2.0.12019/07/317 年前
2.0.02019/07/167 年前
1.3.82019/06/077 年前

关于 @azure/ms-rest-azure-js 的常见问题

@azure/ms-rest-azure-js 是什么?

Isomorphic Azure client runtime for Typescript/node.js/browser javascript client libraries generated using AutoRest注意:该包已被作者标记为弃用——This package has been deprecated in favor of the new [Azure SDK for JavaScript](https://github.com/azure/azure-sdk-for-js). The long running operation support is provided by the @azure/core-lro package (https://github.com/Azure/azure-sdk-for-js/tree/dc5f9743b05ea78f938eba31cbe704150889490c/sdk/core/core-lro).

如何安装 @azure/ms-rest-azure-js?

在项目目录运行 npm install @azure/ms-rest-azure-js,或使用 pnpm add / yarn add / bun add。

@azure/ms-rest-azure-js 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@azure/ms-rest-azure-js 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@azure/ms-rest-azure-js 可以商用吗?

@azure/ms-rest-azure-js 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@azure/ms-rest-azure-js 的下载量有多少?

根据 npm 官方下载统计,@azure/ms-rest-azure-js 在 2026/10/08 – 2026/11/06 这 30 天内被下载 1,184,596 次,日均约 39,487 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@azure/ms-rest-azure-js 还在维护吗?

最新版本 2.1.0 发布于 2021/01/27(5 年前);至今共发布 22 个版本,其中过去 12 个月发布了 0 个;首次发布于 2018/11/13。作者已将其标记为弃用,新项目建议寻找替代方案。