git-topics

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i git-topics

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • bukinoshita