0.3.4 • Published 10 years ago

awesomelists-index v0.3.4

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

awesomelists-index

npm version

Generate the awesome lists in JSON file.

Installation

$ npm install awesomelists-index

You can set github token without passing it every time

$ echo export TOKENS="Your-Github-Token" >> ~/.bash_profile && source ~/.bash_profile

Example Usage

'use strict';
let Awesome = require('awesomelists-index');

let options = {
  repo: 'matiassingers/awesome-slack',
  // token is optional parameter
  token: process.env.TOKEN || 'GITHUB_TOKEN',
};

// Given a repository name with author ex: vinta/awesome-python
let py = new Awesome(options);

py.makeIndexJson((err, res) => {console.log(res);});

Run with given github token

$ TOKENS="Your-Github-Token" node examples/simple.js

Related

0.3.4

10 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago