Extwee is a Twee compiler supporting Twine 2-style formats using the Twee 3 specification.
It will read both Twee 2 (Twee2) and Twee 3 formatted files, but does not understand or currently support Twee 1 (Twine 1.4.2) or Twee2 special passages for Twine 1.X formatting.
Extwee does not support Twine 1.X story formats.
Starting with Extwee 1.5, the latest versions of Twine 2 story formats are included. See each story format for its own license.
Extwee supports NPX commands:
npx extwee -c -i <input twee> -s <input story format JS> -o <output HTML>
npx extwee -d -i <input HTML> -o <output twee>
Extwee will attempt to escape the metacharacters of
] when moving to and from Twee notation. However, even with this support, it highly recommended to avoid these characters in passage name and tags to avoid confusion and potential issues.
Extwee can be installed via NPM.
npm i extwee