
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
ng-router-resolver
Advanced tools
Resolve routes from Angular Module statically
This project is aimed to be used as a cli/programmatic tool with Angular projects
to statically analyze routes in NgModules and do some useful stuff with it.
As a use case you might want to generate some rules for ServiceWorker based on routes to add some offline/cache capabilities to any Angular application.
$ npm install --save-dev ng-router-resolver
It parses given Angular TS module and collects all routes including lazy-routes.
It does not run your Angular app on the server but statically analyzes your code via AST.
import { NgRouterResolver } from '../src/resolver';
const routes = NgRouterResolver.fromModule('./src/app/app.module.ts');
It will return an array of type same as Route from @angular/route package.
$ ng-router-resolver src/app/app.module.ts // Prints json into stdout
$ ng-router-resolver src/app/app.module.ts --out routes.json // Prints json into specified file
MIT © Alex Malkevich
FAQs
Resolve routes from Angular Module
The npm package ng-router-resolver receives a total of 5 weekly downloads. As such, ng-router-resolver popularity was classified as not popular.
We found that ng-router-resolver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies