0.0.2 • Published 7 years ago

git-topics v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

git-topics Build Status

Auto create Github topics for repositories

Install

$ yarn add git-topics

Usage

const gitTopics = require('git-topics')

const token = 'foo'

gitTopics(token, {
  topics: ['github', 'git'],
  project: 'bukinoshita/git-topics'
}).then(res => res)
// => "['github', 'git']"

API

gitTopics(token, options)

Returns a promise

token

Type: string Required

Github access token

options

Type: object

topics

Type: array Default: It will try to get keywords from package.json

Array of topics to be added to Github

project

Type: string Default: It will try to get repository from package.json

Github project to add topics

Related

License

MIT © Bu Kinoshita