Skip to content

toggle-pkg-type 1.0.1

Install from the command line:
Learn more about npm packages
$ npm install @flex-development/toggle-pkg-type@1.0.1
Install via package.json:
"@flex-development/toggle-pkg-type": "1.0.1"

About this version

toggle-pkg-type

conventional commits code style: prettier module type: esm npm license typescript

Easily enable or disable type in package.json

Install

yarn add -D @flex-development/toggle-pkg-type

GitHub Package Registry

To install from the GitHub Package Registry, setup a .npmrc or .yarnrc.yml file to authenticate with the registry.

A Personal Access Token with the read:packages scope is required.

.npmrc

//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
@flex-development:registry=https://npm.pkg.github.com/

.yarnrc.yml

npmRegistries:
  //npm.pkg.github.com:
    npmAlwaysAuth: true
    npmAuthToken: ${GITHUB_TOKEN}

npmScopes:
  flex-development:
    npmRegistryServer: https://npm.pkg.github.com

Git

See npm-install or Git - Protocols | Yarn for details on requesting a specific branch, commit, or tag.

NPM

npm i -D flex-development/toggle-pkg-type

Yarn

yarn add -D @flex-development/toggle-pkg-type@flex-development/toggle-pkg-type

Usage

CLI

  Usage
    $ toggle-pkg-type [off|on] [options]

  Options
    -v, --version    Displays current version
    -h, --help       Displays this message

  Examples
    $ toggle-pkg-type
    $ toggle-pkg-type off
    $ toggle-pkg-type on

Programmatic

import toggle from '@flex-development/toggle-pkg-type'

toggle()
toggle('off')
toggle('on)

Details


Assets

  • toggle-pkg-type-1.0.1.tgz

Download activity

  • Total downloads 473
  • Last 30 days 0
  • Last week 0
  • Today 0