Options
All
  • Public
  • Public/Protected
  • All
Menu

Package plugin-interactive-tools

@yarnpkg/plugin-interactive-tools

This plugin adds support for various interactive commands.

Install

yarn plugin import interactive-tools

Commands

Type aliases

UpgradeSuggestion

UpgradeSuggestion: object

Type declaration

  • label: string
  • value: string | null

UpgradeSuggestions

UpgradeSuggestions: Array<UpgradeSuggestion>

Variables

Const DEFAULT_WINDOW_SIZE

DEFAULT_WINDOW_SIZE: 10 = 10

Const SIMPLE_SEMVER

SIMPLE_SEMVER: RegExp = /^((?:[\^~]|>=?)?)([0-9]+)(\.[0-9]+)(\.[0-9]+)((?:-\S+)?)$/

Const TARGETS

TARGETS: string[] = [`regular`, `dev`, `peer`]

Const client

client: object & object = algoliasearch(algolia.appId, algolia.apiKey).initIndex(algolia.indexName,)

Functions

Const search

  • search(query: string, page?: number): Promise<object>

Object literals

Const algolia

algolia: object

apiKey

apiKey: string = `6fe4476ee5a1832882e326b506d14126`

appId

appId: string = `OFCNCOG2CU`

indexName

indexName: string = `npm-search`

Const plugin

plugin: object

commands

commands: SearchCommand[] = [search,upgradeInteractive,]

Generated using TypeDoc