ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

NPMInfo

by dsteinbach ST2

Sublime Text plugin for displaying NPM information such as version, description, properties and methods, as well as a quick link to the repo and a link to open the package.json file.

Details

  • 2014.02.15.01.14.30
  • github.​com
  • github.​com
  • 11 years ago
  • 1 hour ago
  • 11 years ago

Installs

  • Total 697
  • Win 465
  • Mac 171
  • Linux 61
Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

NPM Info

Sublime Text plugin for displaying information about modules included through require() in node.js files. Placing your cursor between the quotes of a require function will display a panel with a link to the package.json file, link to the module's repo in a browser, and a list properties and methods. It also displays version and module description in the status bar.

How to use

Place your cursor between the quotes of a require method and wait for 1.5 seconds (configurable):

var thingy = require("thingy");

For example:

Also, version and description appears in status bar:

lodash@2.4.1 - A utility library delivering consistency, customization, performance, & extras.

Note: Information for native Node NPMs require('fs') and non-NPMs require("../script.js") won't display as they have no associated package.json file.

Installation

Via Package Control

First make sure you have Package Control installed (https://sublime.wbond.net/installation) and then:

  • Open Package Control: ctrl+shift+p (Win, Linux) or cmd+shift+p (OS X)
  • Find and select: Package Control: Install Package
  • Search for NPMInfo and hit return

Manual Install

Unzip the contents of this repo to a folder called NPMInfo at this location:

OSX:
~/Library/Application Support/Sublime Text 2/Packages/NPMInfo
Windows:
%APPDATA%\Sublime Text 2\Packages\NPMInfo