<commit_before>#!/usr/bin/env bash
source "$DOTFILES_ZSH/script/lib/info_printer.bash"

packages=(npm npm-check diff-so-fancy hotel tldr)

text_info node/install.bash "Installing the following global npm packages:"
for package in ${packages[*]}
do
  text_info node/install.bash "  - $package"
done

for package in ${packages[*]}
do
  npm install --global $package
done<commit_msg>Make npm package installation more... elegant.<commit_after>#!/usr/bin/env bash
source "$DOTFILES_ZSH/script/lib/info_printer.bash"

packages=(npm npm-check diff-so-fancy hotel tldr)

text_info node/install.bash "Installing the following global npm packages:"
for package in ${packages[*]}
do
  text_info node/install.bash "  - $package"
done

npm install --global ${packages[*]}
{'fraction_non_alphanumeric': 0.12779973649538867, 'fraction_numerical': 0.0, 'mean_word_length': 5.031746031746032, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4964952', 'n_tokens_mistral': 267, 'n_tokens_neox': 243, 'n_words': 70}