Skip to content

Commit dd09279

Browse files
committed
Initial commit
1 parent a5b5c60 commit dd09279

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
### Important - read the following before trying the preview javascript SDK! (will be removed before making repo public)
2-
Until this is published in npm, I've included lib/ in source control. That means the browser and javascript versions are both there to be directly referenced instead of requiring a node module or using bower. See [samples/node/node-sample.js](samples/node/node-sample.js) to get started with the Node example. Notice that at the top of this sample is the line `var MicrosoftGraph = require("../../lib/index.js");` which gets the index.js which is for node testing. You'll need to copy secrets.example.json to secrets.json and update the access token. Also run `npm install` since you're not using the packaged node module and you need to install the dependencies. When you're ready to run the sample, I'd recommend commenting out most of node-sample.js and just start running a few examples at a time instead of the entire file. Run `node samples/node/node-sample.js` when you're ready!
3-
41
# Microsoft Graph JavaScript SDK
52
The Microsoft Graph JavaScript SDK is a lightweight wrapper around the Microsoft Graph API that supports both Node and the browser. See the [samples](samples) folder for code examples. You can also use our [TypeScript graph typings](https://github.com/microsoftgraph/msgraph-typescript-typings) with this SDK.
63

74
## Installation
85
### Node
96

10-
(@TODO - Not published yet)
117
```npm install msgraph-sdk-javascript```
128

139
Include the library in your JavaScript file with `const MicrosoftGraph = require("msgraph-sdk-javascript");`
14-
> To use the library before it's been published in NPM, reference it directly with `var MicrosoftGraph = require("lib/index.js");`. Note your path to lib/index.js might be different depending on how your project is set up. (@TODO remove this note before publishing)
1510

1611
### Browser
1712

0 commit comments

Comments
 (0)