New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

msgraph-helper

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

msgraph-helper

Simplifies MSGraph usage for SPFx

latest
Source
npmnpm
Version
0.8.3
Version published
Maintainers
1
Created
Source

msgraph-helper

Simplifies usage of the MSGraph client in your SPFX solutions.

Usage

Import the helper:

import MSGraph from 'msgraph-helper';

In your main webpart or extension in the onInit function, add the following:

 await MSGraph.Init(this.context.msGraphClientFactory, 'v1.0');

Anywhere in your soluton you can now do:

import MSGraph from 'msgraph-helper';

let memberOf = await MSGraph.Get('/me/memberOf');

The helper supports Get, Patch, Put and Delete.

FAQs

Package last updated on 26 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts