This JavaScript library is part of the Microsoft Teams developer platform. For documentation, see Reference: Microsoft Teams JavaScript library.
- Clone the repo
- Navigate to the repo root
yarn install
yarn build
- to run Unit test
yarn test
To install the stable version:
npm install --save @microsoft/teams-js
yarn add @microsoft/teams-js
You can access these files on unpkg, download them, or point your package manager to them.
Install either using npm or yarn
If you are using any dependency loader such as RequireJS or SystemJS or module bundler such as browserify, webpack, you can use import
syntax to import specific modules. For e.g.
import * as microsoftTeams from "@microsoft/teams-js";
Reference the library inside of your .html
page using:
<!-- Microsoft Teams JavaScript API (via CDN) -->
<script src="https://statics.teams.cdn.office.net/sdk/v1.7.0/js/MicrosoftTeams.min.js" integrity="sha384-00JbifySIlPvW32u9rSurgu8PujfL6XFdV9iNn4ZWyurJJ33MFvpwPqmCHDq9ADv" crossorigin="anonymous"></script>
<!-- Microsoft Teams JavaScript API (via npm) -->
<script src="node_modules/@microsoft/[email protected]/dist/MicrosoftTeams.min.js"></script>
<!-- Microsoft Teams JavaScript API (via local) -->
<script src="MicrosoftTeams.min.js"></script>
We strongly welcome and encourage contributions to this project. Please read the contributor's guide.
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.