An unofficial NPM wrapper for the Tweego compiler by @tmedwards.
Similar to mattrossman/tweego-node, but has no runtime dependencies.
On installation, downloads the release ZIP for your system, and extracts it to bin/
. NPM will create a symlink to tweego
and storyformats
inside the folder located at $(npm bin)
or $(npm bin -g)
.
Global installation: This will allow you to use tweego
as a shell command.
# Install
npm install --global tweego-bin
# Check that it worked.
tweego --list-formats
Project-level installation: allows using Tweego inside scripts in package.json.
# Install
npm install --save-dev tweego-bin
# Check that it worked.
npm exec -c 'tweego --list-formats'
See the official Tweego docs for using Tweego.
- On Win32, npm will create a broken PowerShell shim called
tweego.ps1
.- To remove the broken shim, invoke
Remove-Item (Join-Path (npm bin -g) "\tweego.ps1")
.
- To remove the broken shim, invoke
- Builds are only available for x64 and x84 Windows, macOS, and Linux.
- On an ARM64 Mac, the script will download the x64 version (requires Rosetta 2).
- Stream-based unzipping may behave unexpectedly slowly on some platforms.
Copyright (c) 2021, 2022 Double-A
Licensed under the MIT No Attribution (MIT-0) license.