JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q23428F
  • License MIT

Find out what's in an Angular 1 app

Package Exports

  • ps-which

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ps-which) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ps-which

Find out what's in an Angular 1 app

Installing

bower install ps-which -D

or

npm install ps-which -D

Usage

1. Initialize ps-which right after Angular

bower users

Include ps-which before loading any other code that uses Angular.

<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/ps-which/build/ps-which.js"></script>
<!-- Load other Angular libs and your app code here -->

CommonJS users

Before requiring any other Angular-related libs do:

var angular = require('angular');
require('ps-which');

2. Load Angular app in browser and open dev console

In dev console:

psWhich.ask(name)

Find out what name is and where it comes from.

name (string) should be the name of a

  • value
  • constant
  • factory
  • service
  • directive (camelCasedName or dashed-name formats accepted)
  • provider

psWhich.report([regexp])

Print everything psWhich knows to console.

Optional RegExp can be passed to filter module's by name. Only matching modules will be printed. Defaults to printing all modules.

psWhich.info

psWhich's raw data object.

License

MIT