@lancejpollard/act

Gathering up all the power into one tool.


Keywords
cli
License
Apache-2.0
Install
npm install @lancejpollard/act@0.1.0

Documentation








act

Common Actions Interface



SummaryGetting StartedCLIContributeLicense




Summary

Act is a collections of common actions to perform in code. It provides an API and CLI for performing these actions.

Getting Started

Requirements on Mac

brew cask install java
brew cask install mactex
brew cask install libreoffice
brew install imagemagick
brew install fontforge
brew install ffmpeg
brew install node

Requirements for Windows:

choco install libreoffice-fresh
choco install imagemagick --version 7.0.10.19
choco install fontforge
choco install ffmpeg
choco install miktex
choco install nodejs

Requirements for Linux:

sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install texlive-xetex
sudo apt-get install imagemagick
sudo apt-get install libreoffice
sudo apt-get install fontforge
sudo apt-get install inkscape
sudo apt-get install ffmpeg
sudo apt-get install ufraw
sudo apt-get install rar

Finally, with these dependencies installed, you can install the act:

npm install -g @lancejpollard/act

CLI

Here are some helpful commands to get you started:

Split a PDF into individual files.

$ act split some.pdf -o outputDirectory

Take a subset of a PDF.

$ act slice some.pdf -s 15 -e 25 -o output.pdf

Rename recursively a bunch of files:

$ act rename -t f -p "tmp/**/*.jpg" -s "\.jpg" -e ".png"

Convert HTML to PDF

$ act convert tmp/index.html -o tmp/index.pdf -w 2000px -h 3000px

Remove All EXIF Data from a JPEG

$ act remove exif input.jpg

Resize Image

$ act resize input.jpg -w 300 -o output.jpg

License

MIT