Install the package as a dependency from npm:
With NPM:
npm install --save github-insights
With YARN:
yarn add github-insights
Documentation 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