Installing Turndown on NixOS Latest
Turndown is a JavaScript library that can convert HTML to Markdown. This tutorial explains how to install Turndown on NixOS Latest.
Requirements
- NixOS Latest installed and running
- Internet connection
Steps
- Open a terminal window on your NixOS Latest system.
- Type the following command to update the package list:
sudo nix-channel --update
- Type the following command to install Node.js and npm:
sudo nix-env -iA nixos.nodejs
- Type the following command to install Turndown:
sudo npm i -g turndown
- Verify that Turndown is installed by running:
turndown --version
This should display the version of Turndown installed.
Conclusion
You have successfully installed Turndown on NixOS Latest. You can now use the Turndown library to convert HTML to Markdown.