Skip to content

Commit 2092620

Browse files
committed
Include instructions for node
1 parent c214c77 commit 2092620

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ The wrapper includes helper functions to do the following:
5353
Install via bower (browser):
5454

5555
$ bower install spotify-web-api-js
56+
57+
Install via node (since the requests are made using XMLHttpRequest, you will need a tool like Browserify to run this on a browser):
58+
59+
$ npm install spotify-web-api-js
60+
61+
Then, in your javascript file
62+
63+
```javascript
64+
var Spotify = require('spotify-web-api-js');
65+
var s = new Spotify();
66+
//s.searchTracks()...
67+
```
5668

5769
or by making a copy of the `src/spotify-web-api.js` file
5870

0 commit comments

Comments
 (0)