Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blarn

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blarn

A Yarn wrapper with extra functionality

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Blarn

A Yarn wrapper with extra functionality

Features

  • Automatically add and remove TypeScript @types packages when adding or removing packages in a TypeScript project

Usage

Requirements

  • You must have Yarn 1 installed and available on your path

Installation

// npm
npm install -g blarn

// yarn
yarn global add blarn

Upgrading

// npm
npm install -g blarn

// yarn
yarn global upgrade blarn --latest

Running Yarn commands

Blarn will pass all commands and arguments through to Yarn. When adding packages in a TypeScript project it will execute a second yarn add command to add any available @types packages as dev dependencies. When removing packages any corresponding @types packages will be added to the list of packages to remove.

Examples

Adding packages

blarn add yargs

If you run this command in a TypeScript project yargs will be installed as a dependency and @types/yargs will be installed as a dev dependency. If you run this command in a JavaScript project only yargs will be installed as a dependency.

Removing packages

blarn remove yargs

If you run this command in a TypeScript project and @types/yargs exists in package.json both yargs and @types/yargs will be removed. If you run this command in a JavaScript project only yargs will be removed.

Contributing

Running locally

  1. Fork and clone this repo
  2. Run yarn
  3. Run yarn build or yarn watch
  4. Run yarn start or bin/blarn.js

Acknowledgements

This project was inspired by Yarn 2 and Bojack Horseman.

Keywords

FAQs

Package last updated on 04 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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