1.0.2 • Published 6 years ago
skills-importer v1.0.2
Skills Importer
A basic importer to import skills from websites (currently GitHub only) for Node.js.
Feature
- Import skills from Github (repository's language and its stars count).
Installing
Using npm:
$ npm install skills-importer
Example
Import skills from GitHub
const { fromGithub } = require('skills-importer');
const credential = {
username: 'YOUR_USERNAME_HERE',
password: 'YOUR_PASSWORD_HERE',
};
const getSkillsFromGithub = async (auth) => {
const result = await fromGithub(auth);
console.log(result);
};
getSkillsFromGithub(credential);
/**
* Returns
*
* {
* is_success: true,
* skills: {
* JavaScript: 2,
* Swift: 4,
* Kotlin: 3,
* CSS: 2,
* Java: 2
* }
* }
*
* /
Copyright
Copyright © 2018. Zuhriyan Sauqi.