Git Product home page Git Product logo

cerebro-npm's Introduction

cerebro-npm

Cerebro plugin to search NPM packages

Usage

Search for NPM packages using "npm [search term]".

  • Return - Open a package on the NPM website.
  • alt+return - Open a package github repository.
  • cmd+c - Copy the install command eg. npm install -S react

License

MIT ยฉ Jordan Adams

cerebro-npm's People

Contributors

jordanadams avatar kelion avatar lubien avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kelion lubien tobico

cerebro-npm's Issues

Use memoization and debunce

Right now, every time we type a query on your plugin we make a call to NPM's API.

That means that if I type "koa" we'll call "k", "ko", "koa" requests. Let's pretend I type "koac" with the "c" as typo then I delete the "c".This will make "k", "ko", "koa", "koac", "koa" requests. Two "koa" requests.

Memoization can reuse already loaded result. Currently I'm memoizing requests for one minute in my projects just so minor problems like the above one doesn't happen.

Debounce can prevent unwanted requests (like "k", "ko") while user is typing.

If you don't mind I can make a PR

p-debounce
memoize
example

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.