New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

subpath-as-branch

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

subpath-as-branch

Publish a directory to a different branch. Useful for static sites / github pages.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Intro

This package helps to push a directory in your project to a separate branch altogether

Why is this required?

If you're building a node library to push some dist or build folder to another git branch (like github-pages), this may be what you need

Installation and Usage

To install:

npm install --save-dev subpath-as-branch
subpath-as-branch -p dist -b github-pages
  • p flag represents the path for the target contents to be distributed
  • b flag represents the branch name to be published to

Help

Invoke the following after the module has been installed

subpath-as-branch --help

Instructions such as the following should appear

Usage: subpath-as-branch [options]

Options:
  -V, --version         output the version number
  -p, --path <value>    Target path to submit
  -b, --branch <value>  Branch name
  -h, --help            output usage information

FAQs

Package last updated on 09 Aug 2019

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