All Projects → ranyitz → qnm

ranyitz / qnm

Licence: MIT license
🔍 cli utility for querying the node_modules directory

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to qnm

asdf-yarn
asdf plugin for Yarn.
Stars: ✭ 111 (-87.05%)
Mutual labels:  yarn
protractor-starter
#archived: protractor-starter end-to-end tests setup also for non angular application
Stars: ✭ 37 (-95.68%)
Mutual labels:  yarn
angularjs-es6-starter-kit
Basic AngularJS, ES6, Webpack Starter Kit Project which includes Bootstrap 4 also. This is a boilerplate for AngularJS SPA with Bootstrap 4.
Stars: ✭ 28 (-96.73%)
Mutual labels:  yarn
react-webpack2-skeleton
Get started with React with Webpack2, React-Router, Redux, Code Splitting and Server Rendering
Stars: ✭ 59 (-93.12%)
Mutual labels:  yarn
react-typescript
React16 + HMR + typescript + webpack + tslint + tests
Stars: ✭ 21 (-97.55%)
Mutual labels:  yarn
abilitysheet
This app is ability sheet for beatmania iidx music of level 12.
Stars: ✭ 38 (-95.57%)
Mutual labels:  yarn
js-stack-from-scratch
🌺 Russian translation of "JavaScript Stack from Scratch" from the React-Theming developers https://github.com/sm-react/react-theming
Stars: ✭ 394 (-54.03%)
Mutual labels:  yarn
webpack-starter-pug-sass-es6-jquery
Webpack 5 starter that supports Pug, SASS, ES6 ES7 ES8 ES9 ES10 ES11 ES12, VanillaJS/jQuery... (without framework) and generate URLs without the .html extension.
Stars: ✭ 102 (-88.1%)
Mutual labels:  yarn
eslint-config-with-prettier
Eslint config with prettier
Stars: ✭ 39 (-95.45%)
Mutual labels:  yarn
npm-vs-yarn
Compare npm vs yarn
Stars: ✭ 36 (-95.8%)
Mutual labels:  yarn
react-native-surrender
CLI script that clears Watchman, removes node_modules and cleans cache using npm or yarn
Stars: ✭ 53 (-93.82%)
Mutual labels:  yarn
ra-input-markdown
A markdown editor for react-admin
Stars: ✭ 22 (-97.43%)
Mutual labels:  yarn
spotify-vibe-check
Spotify Vibe Checker Web App to vibe check your Spotify Playlists! (currently broken due to CORS)
Stars: ✭ 24 (-97.2%)
Mutual labels:  yarn
yrs
Yarn registry switch tool
Stars: ✭ 12 (-98.6%)
Mutual labels:  yarn
meta-package-manager
🎁 a wrapper around all package managers
Stars: ✭ 277 (-67.68%)
Mutual labels:  yarn
docker-rails-demo
Demo app for Rails, Docker and Webpack
Stars: ✭ 29 (-96.62%)
Mutual labels:  yarn
react-spa-template
This is a sample template for single page applications built using React + Router to work with webpack dev server
Stars: ✭ 19 (-97.78%)
Mutual labels:  yarn
gl-vsts-tasks-yarn
Yarn Package Manager Visual Studio Team Services Build and Release Management extensions
Stars: ✭ 50 (-94.17%)
Mutual labels:  yarn
yarn-global
A set of useful methods for @yarnpkg
Stars: ✭ 12 (-98.6%)
Mutual labels:  yarn
postcss-prefixwrap
A PostCSS plugin that is used to wrap css styles with a css selector to constrain their affect on parent elements in a page.
Stars: ✭ 54 (-93.7%)
Mutual labels:  yarn

qnm-logo

🔍 A simple cli utility for querying the node_modules directory

Build Status NPM version License

qnm-help

Why?

most bugs are caused by the assumptions we didn't realize we were making.

When debugging a problem, I sometimes find myself checking what are the installed versions of the modules within node_modules directory. Current solutions like running npm list are not fast enough and prints too much clutter, checking the version in the package.json takes a bit more effort and doesn't give you more information regarding other occurrences of this module.

qnm aims to get this information fast and tries to filter only the important parts, while supporting both yarn & npm.

Features

  • Interactive fuzzy-search
  • 🔤 Match all packages with a specific string
  • ⁉️ Explain why a package was installed
  • 📚 Supports monorepos
  • 🕛 Show when a version was release and what is the latest version

Installation

If you don't want to install qnm, you can also prepend the command with npx

npm i --global qnm

Usage

qnm [module]

For example, if you want to see the installed versions of lodash:

qnm lodash

And you'll see something like that:

lodash 4.17.21 ↰ 2 days ago
├── 4.17.21 ✓
├─┬ cli-table2
│ └── 3.10.1 ⇡ 1 year ago
└─┬ karma
  └── 3.10.1 ⇡ 1 year ago

Which means you have 3 occurrences of lodash in your node_modules:

  1. ./node_module/lodash
  2. ./node_module/cli-table2/node_modules/lodash
  3. ./node_module/karma/node_modules/lodash
  • The latest version of lodash is 4.17.21, it was published 2 days ago.
  • The other 2 occurrences of lodash (3.10.1) were released a year ago.

Fuzzy-search

fuzzy-search

Use qnm command without arguments to trigger an fzf like fuzzy search.

  • Start typing to filter the matches from your node_modules
  • Use arrows to move cursor up and down
  • Enter key to select the item, CTRL-C / ESC to exit
  • TAB and Shift-TAB to mark multiple items

Options

--no-remote

do not fetch remote data from npm, use this if you want qnm to run faster. qnm will show limited view.

-o , --open

Open the module's package.json file with the default editor.

-d, --debug

See full error messages, mostly for debugging.

--disable-colors

Disables the most of colors and styling. E.g. version colors.

Commands

doctor

experimental

Shows the heaviest modules in your node_modules. Helpful if you want to understand what's taking the most space on your node_modules directory.

qnm doctor

sort the modules based on the amount of duplications they have in your node_modules.

qnm doctor --sort duplicates

image

list

alias: ls

Returns a list of all modules in node_modules directory.

qnm list
Optional arguments Description
--deps List the versions of direct dependencies and devDependencies.
--remote Fetch remote data, this may be very slow for many packages due to many network requests

match

Works like grep, and match's any module that includes the supplied string.

For example, i want to see which eslint plugins i have installed:

> qnm match eslint-plug

eslint-plugin-babel
└── 3.3.0

eslint-plugin-lodash
└── 2.6.1

eslint-plugin-mocha
└── 4.12.1

eslint-plugin-react
└── 6.10.3
Optional arguments Description
--remote Fetch remote data, this may be very slow for many packages due to many network requests

homepage

Opens package "homepage" property in your browser.

Contributing

Help is always welcome! Please head to the CONTRIBUTING.md file to see how to get started.

License

The MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].