1.0.9 • Published 8 months ago

op-npm-install-all-from-import v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

op-npm-install-all-from-import

A Node.js package for automatically installing npm packages based on import statements in your project files.

Introduction

When you copy a project that doesn't have a package.json file, it can be challenging to identify and install all the required npm packages manually. op-npm-install-all-from-import simplifies this process by automatically scanning your project's source files, detecting import statements, and installing missing npm packages for you.

Features

  • Scans your project's source files for import statements.
  • Installs missing npm packages based on the detected imports.
  • Automatically skips local imports (those starting with ".").
  • Easy to use and integrate into your workflow.

Installation

You can install op-npm-install-all-from-import globally to use it as a command-line tool.

npm install -g op-npm-install-all-from-import

Usage

You can use op-npm-install-all-from-import programmatically in your Node.js scripts:

import load from "op-npm-install-all-from-import";

// To scan the current project directory
load();

To specify a custom directory, you can pass it as an argument to the load function:

import load from "op-npm-install-all-from-import";

// To specify a custom directory
load("path/to/your/project");

License

This package is open-source and available under the MIT License.

Keywords

  • npm
  • package
  • installation
  • import
  • dependencies
  • project
  • automation
  • Node.js
  • development
1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago