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

tusk

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tusk

Automation library

  • 1.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
104
increased by1200%
Maintainers
1
Weekly downloads
 
Created
Source

Tusk

Get dandy with an easy-to-use workflow automation library!

Installation

If you're planning to use the workflow automation library:

$ npm install --save tusk

If you're planning to use the CLI task runner:

$ npm install --global tusk-cli

Usage

Tusk comes in handy for pretty much any requirement for automation. Below are some examples which are designed help you get started using this library.

Although most examples use pre-defined operations, the real magic to using this library is when you make self-contained operations and implement them, allowing for a dynamic and flexible usage of tasks.

TypeScript project build script
const tusk = require("tusk");

const buildDir = "./dist";
const coordinator = new tusk.Coordinator();

async function build() {
    const result = await coordinator
        .queue(() => tusk.FileOps.forceRemove(buildDir))
        .queue(() => tusk.ScriptOps.execute("tsc"))

        .run();

    console.log("Build completed with state %s", result.state === tusk.RunState.OK ? "OK" : "FAIL");
}

build();

Keywords

FAQs

Package last updated on 05 Mar 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

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