New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More β†’
Socket
Sign inDemoInstall
Socket

asari

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asari - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

src/commands/repos.js

6

package.json
{
"name": "asari",
"version": "3.0.0",
"version": "3.1.0",
"description": "🐚 Asari: A human-friendly command line tool for the GitHub API",

@@ -23,3 +23,7 @@ "bin": "bin/asari.js",

"@octokit/rest": "^16.16.3",
"lodash.flatmap": "^4.5.0",
"lodash.flow": "^3.5.0",
"lodash.isequal": "^4.5.0",
"lodash.uniq": "^4.5.0",
"lodash.without": "^4.4.0",
"update-notifier": "^3.0.0",

@@ -26,0 +30,0 @@ "yargs": "^13.2.1"

@@ -7,3 +7,3 @@ # 🐚 asari

![image](https://user-images.githubusercontent.com/224547/58557351-1a153680-8216-11e9-9ebc-f25471405ea3.png)
![asari command](https://user-images.githubusercontent.com/79451/59847137-986a8180-9359-11e9-84b9-ac60e1b205fa.png)

@@ -16,12 +16,15 @@ > Above: Use `npx asari` in your shell to manage your work in GitHub.

![image](https://user-images.githubusercontent.com/224547/58558164-010d8500-8218-11e9-9279-9b93307989a7.png)
![asari command line tool help](https://user-images.githubusercontent.com/79451/59781793-7965e400-92b4-11e9-9646-bfc60a9927a2.png)
_Above: Running `npx asari` from your command line shows you the top level of options and commands._
![image](https://user-images.githubusercontent.com/224547/58558212-213d4400-8218-11e9-8b46-42be9ea9d0e9.png)
![asari issues command help](https://user-images.githubusercontent.com/224547/58558212-213d4400-8218-11e9-8b46-42be9ea9d0e9.png)
![image](https://user-images.githubusercontent.com/224547/58558194-15518200-8218-11e9-8d48-0832558413ad.png)
![asari projects command help](https://user-images.githubusercontent.com/224547/58558194-15518200-8218-11e9-8d48-0832558413ad.png)
![image](https://user-images.githubusercontent.com/224547/58558179-0c60b080-8218-11e9-8e17-d5823b55c5ad.png)
![asari pulls command help](https://user-images.githubusercontent.com/224547/58558179-0c60b080-8218-11e9-8e17-d5823b55c5ad.png)
![asari repos command help](https://user-images.githubusercontent.com/79451/59847162-aa4c2480-9359-11e9-9807-61a1c572bc69.png)
_Above: Running `npx asari <command>` shows you options for working with GitHub [issues](#working-with-github-issues), [projects](#working-with-github-projects) and [pull requests](#working-with-github-pull-requests)._

@@ -187,2 +190,22 @@

### Working with GitHub Repositories
```bash
npx asari repos list-topics <github-url>
# List all topics.
```
```bash
npx asari repos <add-topics|remove-topics> <github-url> --topic new-app
# Add/Remove a topic
npx asari repos <add-topics|remove-topics> <github-url> --topic new-app --topic good-one
npx asari repos <add-topics|remove-topics> <github-url> --topics new-app,good-one
npx asari repos <add-topics|remove-topics> <github-url> --topics "new-app, good-one"
# Add/Remove multiple topics
```
### Global Options

@@ -189,0 +212,0 @@

const fs = require('fs')
const parseGitHubURL = require('./parse-github-url')
const convertToFlattenedArrayOfValues = require('./convert-to-flattened-array-of-values')

@@ -182,2 +183,18 @@ const withToken = options => yargs =>

const withTopics = options => yargs => {
return yargs
.option(
'topics',
Object.assign(
{
alias: ['topic'],
type: 'string',
describe: 'GitHub topics to add. To add more than one, add multiple options or a comma separated list',
},
options
)
)
.coerce('topic', convertToFlattenedArrayOfValues)
}
module.exports = {

@@ -192,2 +209,3 @@ withToken,

withGitHubUrl,
withTopics,
}

@@ -23,2 +23,8 @@ const Octokit = require('@octokit/rest').plugin(require('@octokit/plugin-throttling'))

'inertia-preview',
/**
* Access Topics API while it is under preview
*
* @see https://developer.github.com/v3/repos/#list-all-topics-for-a-repository
*/
`mercy-preview`,
],

@@ -25,0 +31,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc