ng-route-discoverer
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

ng-route-discoverer

Build Status codecov npm version

ng-route-discoverer traverses an Angular project and discovers all routes, including lazy routes (loadChildren).

Installation

npm install --save-dev ng-route-discoverer or yarn add --dev ng-route-discoverer

Usage

CLI

ng-route-discoverer --project ./path/to/tsconfig.app.json

Sample output:

/
/app-shell
/errors/not-found
/errors/internal-server-error
/feature
/feature/feature-page
/**

API

import { getPaths, getProjectRoutes } from 'ng-route-discoverer';

const routes = getProjectRoutes('./src/tsconfig.app.json'); // tree
const paths = getPaths(routes);

Readme

Keywords

none

Package Sidebar

Install

npm i ng-route-discoverer

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

29.1 kB

Total Files

24

Last publish

Collaborators

  • kevinphelps