Install the package as a dependency from npm:
With NPM:
npm install --save github-insightsWith YARN:
yarn add github-insightsDocumentation is available here
The "API" Module is most Important, "INDEX" just exports it
import * as insights from 'github-insights';
async function main() {
const clones = insights.traffic.clones('<user>', '<repo>', '<username>', '<password>');
console.log(clones);
}
main();MIT © Bernd Storath