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
  • 58 minutes ago
  • 11 years ago

Installs

  • Total 697
  • Win 465
  • Mac 171
  • Linux 61
Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19
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