microsoft-teams-deep-link

0.0.3 • Public • Published

microsoft-teams-deep-link

A module to help generate deep links for Microsoft Teams

npm version Build Status Coverage Status

Installation

npm install microsoft-teams-deep-link --save
yarn add microsoft-teams-deep-link

Usage

JavaScript

var teamsDeepLink = require('microsoft-teams-deep-link');
var deepLink = teamsDeepLink.getEntityDeepLink(
  {
    entityId: "someEntityId",
    entityWebUrl: "someEntityWebUrl",
    entityLabel: "someEntityLabel"
  },
  "someAppId"
);
console.log(deepLink);
Output should be "https://teams.microsoft.com/l/entity/someAppId/_djb2_msteams_prefix_3116810623?webUrl=someEntityWebUrl&label=someEntityLabel"

TypeScript

import { getEntityDeepLink } from 'microsoft-teams-deep-link';
let deepLink = getEntityDeepLink(
  {
    entityId: "someEntityId",
    entityWebUrl: "someEntityWebUrl",
    entityLabel: "someEntityLabel"
  },
  "someAppId"
);
console.log(deepLink);
Output should be "https://teams.microsoft.com/l/entity/someAppId/_djb2_msteams_prefix_3116810623?webUrl=someEntityWebUrl&label=someEntityLabel"

Build & Test

npm install
npm run build
npm run cover

Readme

Keywords

none

Package Sidebar

Install

npm i microsoft-teams-deep-link

Weekly Downloads

9

Version

0.0.3

License

MIT

Unpacked Size

59.9 kB

Total Files

17

Last publish

Collaborators

  • ydogandjiev