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

  1. Open a terminal window on your NixOS Latest system.
  2. Type the following command to update the package list:
sudo nix-channel --update
  1. Type the following command to install Node.js and npm:
sudo nix-env -iA nixos.nodejs
  1. Type the following command to install Turndown:
sudo npm i -g turndown
  1. 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.