Socket
Book a DemoInstallSign in
Socket

@evilkiwi/compose

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evilkiwi/compose

Vue 3 Utility Hook for cross-origin iFrame IPC

1.1.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source
NPM Discord GPL-3.0-only

Docker Compose TypeScript Runtime

@evilkiwi/compose provides TypeScript bindings to Docker Compose commands and syntax.

  • Supports both Compose v1 & v2
  • Functional API
  • Side-effect free
  • Zero dependencies
  • ES Module
  • Less than 3kb

Installation

This package is available via NPM:

yarn add @evilkiwi/compose

# or

npm install @evilkiwi/compose

Usage

import { compose } from '@evilkiwi/compose';

// By default, the current cwd will be used.
await compose().up();

// You can specify a different cwd, too.
await compose({ cwd: '/path/to/project' }).up();

// As well as cwd, the files used for docker compose can be specified.
await compose({
  cwd: '/path/to/project',
  path: ['my-compose-file.yaml'],
}).up();

// Or you can alternatively specify your compose config inline as a string.
await compose({
  cwd: '/path/to/project',
  config: `
name: my-project

services:
  proxy:
    container_name: proxy
    image: nginx:latest
    restart: always`,
}).up();

// `@evilkiwi/compose` uses Docker Compose v2 by default, you can force it to use v1.
await compose({
  cwd: '/path/to/project',
  v1: true,
}).up();

Keywords

typescript

FAQs

Package last updated on 11 Nov 2023

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.