npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vscode-yarn

v1.6.0

Published

yarn commands for VSCode

Downloads

97

Readme

Getting started

You can install this awesome extension through the VSCode-Yarn.

Installation

Launch Quick Open

  • Linux Ctrl+P
  • macOS ⌘P
  • Windows Ctrl+P

Paste the following command and press Enter:

ext install gamunu.vscode-yarn

Packaged VSIX Extension

Download the latest .vsix release file from the GitHub repository and install it from the command line

code --install-extension vscode-yarn-*.*.*.vsix

or from within VS Code by launching Quick Open and running the Install from VSIX... command.

GitHub Repository Clone

Change to your .vscode/extensions VS Code extensions directory. Depending on your platform it is located in the following folders:

  • Linux ~/.vscode/extensions
  • macOs ~/.vscode/extensions
  • Windows %USERPROFILE%\.vscode\extensions

Clone the Material Theme repository as gamunu.vscode-yarn:

git clone [email protected]:gamunu/vscode-yarn.git gamunu.vscode-yarn

Features

Commands

  • yarn init
  • yarn install
  • yarn add
  • yarn add --dev
  • yarn remove <pkg>
  • yarn start
  • yarn test
  • yarn publish [tag]
  • yarn run <script>

Not happy with the available commands ? No problem, raw command is also available. Enter any yarn command you want.

Explorer context menu

yarn install also available in the package.json file's explorer context menu.

Context menu

Run last executed script

You can also run the last executed script by typing yarn run last....

Terminate a script

You can terminate a script with the terminate command. It uses the tree-kill module that you can find on yarn. It has different behaviors on Unix or Windows.

Order of execution of yarn commands

  1. If a package.json is opened as an active editor/focused tab yarn will be invoked on it.
  2. If the package.json is explicitly defined in the configuration yarn will invoke on it.
  3. If above scenarios fail to satisfy. The extension will fallback to package.json in project root folder.

Settings

  • yarn.runInTerminal Defines whether the command is run in a terminal window or whether the output form the command is shown in the Output window. The default is to show the output in the output window.
  • yarn.dontHideOutputOnSuccess Keep the output panel visible when yarn execution is successful. No effect with runInTerminal. The default is to keep output window open.
  • yarn.bin Custom npm bin name, the default is yarn.
  • yarn.packageJson Default package json path. relative to current project root.
Example
{
  "yarn.runInTerminal": false,
  "yarn.dontHideOutputOnSuccess": false
  "yarn.packageJson": "src/package.json"
}

Keyboard Shortcuts

The extension defines a chording keyboard shortcut for the R key. As a consequence an existing keybinding for R is not executed immediately. If this is not desired, then please bind another key for these commands, see the customization documentation.

Contribute

Report a bug or a suggestion by posting an issue on the git repository (https://github.com/gamunu/vscode-yarn).

vscode-yarn incorporates code modified from fknop vscode-npm.