All Projects → kachkaev → Njt

kachkaev / Njt

Licence: bsd-3-clause
njt (npm jump to): a quick navigation tool for npm packages

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Njt

Flow.launcher
Launch apps with greater control, search files effortlessly and extend features with community plugins. Fast and fluid productivity tool of choice that helps your workflow.
Stars: ✭ 288 (+60.89%)
Mutual labels:  productivity, search
Scrape Youtube
A lightning fast package to scrape YouTube search results. This was made and optimized for Discord Bots.
Stars: ✭ 43 (-75.98%)
Mutual labels:  search, npm
Alfred Npms
Alfred 3 workflow to search for npm packages with npms.io
Stars: ✭ 312 (+74.3%)
Mutual labels:  search, npm
meta-git
git plugin for meta
Stars: ✭ 22 (-87.71%)
Mutual labels:  productivity, meta
Npmarket
🛒 More efficient search for node packages.
Stars: ✭ 91 (-49.16%)
Mutual labels:  search, npm
hyperkeys
Unleash you keyboard shorcuts
Stars: ✭ 35 (-80.45%)
Mutual labels:  productivity, shortcuts
Gata
Bookmarks made better
Stars: ✭ 17 (-90.5%)
Mutual labels:  productivity, shortcuts
Sublimetutor
An interactive in-editor keyboard shortcuts tutorial for Sublime Text 3
Stars: ✭ 336 (+87.71%)
Mutual labels:  productivity, shortcuts
Yana
Powerful note-taking app with nested documents, full-text search, rich-text editor, code snippet editor and more
Stars: ✭ 87 (-51.4%)
Mutual labels:  productivity, search
Xcactionbar
"Alfred for Xcode" plugin
Stars: ✭ 1,217 (+579.89%)
Mutual labels:  productivity, shortcuts
Start-Menu-Manager
App to add websites/software/files/folders/scripts to the Windows 10 Start Menu and Taskbar, and priority shortcuts to Windows 10 Search.
Stars: ✭ 126 (-29.61%)
Mutual labels:  productivity, shortcuts
Meta
tool for turning many repos into a meta repo. why choose many repos or a monolithic repo, when you can have both with a meta repo?
Stars: ✭ 1,376 (+668.72%)
Mutual labels:  productivity, meta
Icanhazshortcut
simple shortcut manager for macOS
Stars: ✭ 204 (+13.97%)
Mutual labels:  productivity, shortcuts
Zeus
🔭 A modern cross platform `ls` with powerful searching and querying capabilities to scale your productivity to the moon 🚀 (and yeah it has file explorer like capabilities too 🤫)
Stars: ✭ 75 (-58.1%)
Mutual labels:  search, productivity
Inkscape Shortcut Manager
Inkscape shorcut manager
Stars: ✭ 200 (+11.73%)
Mutual labels:  productivity, shortcuts
Npmf
Fetch quick info of a npm pacakge using terminal
Stars: ✭ 64 (-64.25%)
Mutual labels:  meta, npm
Node Sonic Channel
🦉 Sonic Channel integration for Node. Used in pair with Sonic, the fast, lightweight and schema-less search backend.
Stars: ✭ 101 (-43.58%)
Mutual labels:  search, npm
Nnn
n³ The unorthodox terminal file manager
Stars: ✭ 13,138 (+7239.66%)
Mutual labels:  productivity, search
Awesome Python Applications
💿 Free software that works great, and also happens to be open-source Python.
Stars: ✭ 13,275 (+7316.2%)
Mutual labels:  productivity
Smartblock
intuitive block based wysiwyg editor built with React and ProseMirror
Stars: ✭ 173 (-3.35%)
Mutual labels:  npm

🐸 njt 🐸

🐸 npm jump to 🐸
njt.now.sh

Are you typing npm package names in your search engine to then manually navigate to their source, homepage, changelog, versions and so on? 🕐🕑🕒🕓🕔

Save five seconds thousands of times by quickly jumping to the right URL! Here is a magic spell to remember:

🐸✨🐸✨🐸
njt <package> [destination]
🐸✨🐸✨🐸

Available destinations

  • b → package cost estimation on bundlephobia.com
  • c → changelog
  • g → github (gitlab, etc.) repository root
  • h → homepage (aliased as w for website or d for docs)
  • i → issues
  • n → package info on npmjs.com
  • p → pull requests (aliased as m for merge requests)
  • r → list of github releases
  • s → source (often same as repository root, but can be its subdirectory in case of a monorepo)
  • t → list of git tags
  • u → package contents preview on unpkg.com
  • v → list of package versions with dates on npmjs.com
  • y → package page on yarnpkg.com (mirror registry for npmjs.com)

Omitting the destination or entering an non-existing one takes you to the package page on npmjs.com as if you used n.

Examples

njt prettier (no specified destination)
🐸 → https://www.npmjs.com/package/prettier

njt prettier h (homepage)
🐸 → https://prettier.io

njt prettier s (source)
🐸 → https://github.com/prettier/prettier

njt prettier r (releases)
🐸 → https://github.com/prettier/prettier/releases

njt prettier y (yarn)
🐸 → https://yarnpkg.com/package/prettier

Getting njt

There are several environments in which you can access njt. Pick your favourite or use ’em all!

🟢 Command-line tool

Install njt globally from npm by running this command in your terminal:

npm install --global njt

You are all set. Now try executing njt <package> [destination] with some real arguments. For example, these two commands will take you to the Lodash github repo and homepage, respectively:

njt lodash g
njt lodash h

A list of supported destinations will be shown if you launch njt without arguments.

To uninstall, run npm remove --global njt. To reinstall or upgrade, run npm install --global njt again.

Pro tip 💡 When you specify . instead of a package name, njt takes the name from the nearest package.json file.

Pro tip 💡 To customise which browser you want to open, set an environment variable called NJT_BROWSER (or just BROWSER) with the app name of your choice. The value may vary based on your OS. Note that setting BROWSER instead of NJT_BROWSER can affect other tools, which may or may not be desired.

🟢 Custom search engine in Chrome

  1. Open Chrome settings, e.g. by navigating to chrome://settings

  2. Navigate to Manage search engines section (e.g. by typing its name in the Search settings field)

  3. Click Add next to Other search engines

  4. Fill in the Add search engine form:

    Field Value
    Search engine njt (npm jump to)
    Keyword njt
    Url with %s in place of query https://njt.now.sh/jump?from=chrome&to=%s
  5. Press Add

From now on, typing njt <package> [destination] in the address bar will take you directly to a page you want. For example, njt react h will take you to the React.js homepage.

To uninstall, open Manage search engines section in Chrome settings, click on three dots next to Other search engines → njt and hit Remove from list.

Pro tip 💡 You can use n instead of njt as a keyword to avoid typing two extra characters each time. The command to type in Chrome address bar will become n <package> [destination] 🚀

🟢 Search bookmark in Firefox

You can use njt right from the address bar in Firefox.

  1. Open njt.now.sh
  2. Right-click on the search input field
  3. In the context menu, select Add Keyword for this Search...
  4. You’ll see a small form; type njt into the Keyword field
  5. Press Save

From now on, typing njt <package> [destination] in the address bar will take you directly to a page you want. For example, njt react h will take you to the React.js homepage.

To uninstall, open Firefox bookmarks from the main menu, search for njt and remove the bookmark.

Pro tip 💡 You can use n instead of njt as a search keyword to avoid typing two extra characters each time. The command to type in Firefox address bar will become n <package> [destination] 🚀

🟢 Alfred web search

Want to hop directly from Alfred launcher?

  1. Open PreferencesFeaturesWeb Search

  2. Click Add Custom Search

  3. Fill in the form:

    Field Value
    Search URL https://njt.now.sh/jump?from=alfred&to={query}
    Title Search njt for '{query}'
    Keyword njt
    Icon drag from https://njt.now.sh/favicon-32x32.png
  4. Press Save

Alternatively, copy and open this special Alfred link to get all the above steps done for you:

alfred://customsearch/Search%20njt%20for%20%27%7Bquery%7D%27/njt/utf8/nospace/https%3A%2F%2Fnjt.now.sh%2Fjump%3Ffrom%3Dalfred%26to%3D%7Bquery%7D

Pro tip 💡 You can use n instead of njt as a search keyword to avoid typing two extra characters each time. The command to type in Alfred address bar will become n <package> [destination] 🚀

You can also create variants with your favorite njt suffixes to jump to your favorite locations in even fewer characters. For example, keyword ng can be a shortcut to njt {query} g.

🟢 VSCode

If you use Visual Studio Code, you can add njt to the command palette via LaunchX extension.

  1. Install the extension

  2. Open the command palette

  3. Type njt and press Enter

    njt in VSCode command palette

  4. Type your search and press Enter again

Pro tip 💡 Use ctrl+alt+n to bypass the command palette.

🟢 DuckDuckGo bang

DuckDuckGo bang is awaiting approval

If you use duckduckgo.com as your primary search engine, type !njt <package> [destination] in its search field (note the leading exclamation mark). This trick is possible thanks to DuckDuckGo’s awesome bang feature.

🟢 Online search field on the njt’s mini-website

Open njt.now.sh, type your query, press Enter. This method is a bit slower than the other ones because it involves opening a web page with an input form. On the plus side, it works everywhere and does not require setup.

Thanks to now.sh for hosting njt.now.sh 💚

❓More ways

Are you a search shortcut guru? Feel free to suggest another entry point to njt and save people’s time around the world!

How does njt work

For requests like njt <package> or njt <package> y, all the tool does is navigating you to URLs like https://www.npmjs.com/package/<package> or https://yarnpkg.com/package/<package>.

Most other cases involve a look into package.json for the latest published version. This file contains the location of the repository, the homepage and some other fields, which njt uses to construct the destination URL.

The command line version of the tool takes you to https://njt.now.sh/[email protected]&to=YOUR_QUERY, from which you are redirected to the destination.

Prior art

Shortcuts to some of the njt destinations are built into npm cli:

📦 npm home <package> or npm docs <package>

🐸 njt <package> h (homepage)


📦 npm issues <package> or npm bugs <package>

🐸 njt <package> i (issues)


📦 npm repo <package>

🐸 njt <package> g (github, gitlab, etc. repo)

With njt, you have access to more shortcuts in multiple environments, which makes you more productive day to day.

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].