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

localpacker

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localpacker

A CLI tool to package and install local dependencies.

  • 1.0.0-alpha.1
  • latest
  • Source
  • npm
  • Socket score

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

Quick Start Guide for localpacker

localpacker is a CLI tool that simplifies packaging and installing local dependencies in your project.

Installation

You can install localpacker either globally or locally in your project:

  1. Global Installation (recommended for system-wide use):

    npm install -g localpacker
    

    This allows you to use the localpack command in any project.

  2. Local Installation (specific to a single project):

    npm install localpacker --save-dev
    

    Then, run the command with npx:

    npx localpack /path/to/consuming-project
    

Usage

Once installed, you can use the localpack command to package and install a local dependency in another project.

localpack /path/to/consuming-project

Commands

  • Install and Package Local Dependency:

    localpack /path/to/consuming-project
    

    This command will:

    • Update the package version in localpacker.
    • Build and create a .tgz package file.
    • Update the dependency in the target project to use the local .tgz file.
    • Install the updated dependency in the target project.
  • Clean Up Changes:

    localpack /path/to/consuming-project --clean
    

    This command will:

    • Revert the version change in localpacker.
    • Remove .tgz files generated during packaging.
    • Restore the original dependency version in the target project.

Examples

  1. Package and Install:

    localpack /Users/username/my-consuming-app
    
  2. Clean Up Changes:

    localpack /Users/username/my-consuming-app --clean
    

And that’s it! localpacker is ready to help you manage your local dependencies effortlessly.

Keywords

FAQs

Package last updated on 14 Nov 2024

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