This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var curl = require('node-curl'); | |
var mentions = ''; | |
var user = 'USERNAME'; | |
var repo = 'REPO' | |
curl('https://api.github.com/repos/'+user+'/'+repo+'/stargazers', function(err) { | |
if (err) throw Error(err); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scrapeMDLComponents = require('./scrape-mdl-components'); | |
var parseScrapeData = require('./parse-scrape-data'); | |
var fs = require('fs'); | |
scrapeMDLComponents() | |
.then(function(data) { | |
var parsed = parseScrapeData(data); | |
fs.writeFileSync('./parsed.json', JSON.stringify(parsed, null, 2)) | |
return Promise.resolve(parsed); | |
}) |