Skip to content

Commit

Permalink
get and save profile data #2
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Apr 7, 2020
1 parent 6e8da24 commit 483dc0d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/get_profile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const fs = require("fs")
const gs = require("../lib/switcher");
const url = "nelsonic" // a random username
gs(url, function(err, data) {

fs.writeFileSync(__dirname + "/" + url + ".json", JSON.stringify(data))
console.log(data); // or what ever you want to do with the data
})

0 comments on commit 483dc0d

Please sign in to comment.