npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@adi611/scout

v2.7.0

Published

CLI to scout for doubts during coding sessions

Downloads

19

Readme

scout

Command line interface written in Node.js to solve doubts during coding sessions.

Working

You can search through Google as well as Stackoverflow from the terminal itself and open the required search result from the terminal in a new browser window. You will also have the option to save/bookmark any result for future reference.
The user has options to load the saved results and modify/delete them as well as open the required links from the saved results from the terminal itself.

Pre-requisites

Register a Google Search API Key here
(No API Key required for Stackoverflow)

Recommended

It is highly recommended that you use PostgreSQL database to unlock all the capabilities of scout. The database may be on localhost or provided by Cloud providers like AWS (AWS RDS). Cloud-based host for database (like AWS RDS) will ensure that your saved/bookmarked results will be in sync across all your devices.

Usage

Using npm

npm i @adi611/scout

Using npx

npx @adi611/scout@latest

@latest ensures that always the latest version of the package will be used.

Locally

npm install

npm link

Setup

Run scout key set and it will ask you for your Google Search API Key. Enter it.
For PostgreSQL setup (required for save/bookmark feature), run scout db set. It will then ask you for your host/endpoint, port, database name, username and password. Enter these details.

Commands

# Help & Commands
scout -h

# Version
scout -V

# API Key Commands
scout key set   # Set API key
scout key show  # Show API Key
scout key remove    # Remove API key

# DB Commands
scout db set    # Set-up PostgreSQL database
scout db show   # Show cuurent PostgreSQL database configuration

# Search Commands
scout search web --text "text-to-search"    # Web Search
scout search sof --text "text-to-search"    # Stackoverflow Search

# Saved/Bookmarked Result Commands
scout saved show    # Show the saved/bookmarked results
scout saved delete --id <id>    # Delete the saved/bookmarked result(s)

Testing

Unit tests for the CLI is written with Jest, and can be found under the tests directory. To run the tests:

npm test

Deployment

This CLI is automatically published through CD to npm using Github Actions on every push, and also supports CI of pull requests after running unit tests with Jest.