1.0.0 • Published 4 years ago

@craft-cloud/audiowaveform-static-aws v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

audiowaveform-static-aws

Audiowaveform static binary for Amazon Linux 2 AMI.

The audiowaveform version currently used is 1.4.2.

Installation

This module is installed via npm:

$ npm install @craft-cloud/audiowaveform-static-aws

Example Usage

Returns the path of a statically linked audiowaveform binary on the local filesystem.

const awf = require("@craft-cloud/audiowaveform-static-aws");
const { exec } = require("child_process");

exec(`${awf()} --help`, (error, stdout, stderr) => {
  if (error) {
    console.error(`error: ${error.message}`);
    return;
  }

  if (stderr) {
    console.error(`stderr: ${stderr}`);
    return;
  }

  console.log(`stdout:\n${stdout}`);
});

Source of binary

Binary built using flixier audiowaveform aws lambda