Socket
Book a DemoInstallSign in
Socket

@designcontainer/generate-composer

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@designcontainer/generate-composer

Node module for generating and updating composer files for DC WordPress sites.

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
3
Created
Source

Generate Composer

Node module for generating and updating composer files for DC WordPress sites.

npm

Installation

npm i -g @designcontainer/generate-composer

CLI

cd into a the root directory of a WordPress repository and run:

generate-composer

The first time running the CLI, you will be prompted to enter you GitHub API token. This will be saved in your os' keychain.

To set a new token run:

generate-composer --github-token

API

cd into a the root directory of a WordPress repository and run:

const GenerateComposerFile = require('@designcontainer/generate-composer');
const composer = new GenerateComposerFile(dir, name, githubToken);

Generate a new Composer file

composer.generate();

Update a new Composer file

composer.update();

Write file

composer.generate();
composer.write();

Keywords

cli

FAQs

Package last updated on 29 Nov 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.