New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ng-forever

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-forever

Angular optimization and convention checker that helps you find and fix common issues in your Angular applications.

latest
Source
npmnpm
Version
1.2.5
Version published
Maintainers
0
Created
Source

ngForever

Angular optimization and convention checker that helps you find and fix common issues in your Angular applications. Works great as a pre-commit hook!

Features

  • 🔍 Automatically detects optimization opportunities
  • ⚡ Improves application performance
  • 🎯 Enforces best practices and conventions
  • 🛠️ Customizable to your project needs
  • 📋 Detailed reporting with file and line references

Installation

You can install ngForever using npm:

npm install ng-forever

Or run it directly using npx:

npx ng-forever

Usage

Run ngForever in your Angular project directory:

ng-forever [options]

Command Line Options

OptionDescriptionDefault
--logLevelSet the logging verbosityINFO
--skipCommentedSkip checking commented codefalse
--pathSet the directory path to checkCurrent directory
--showFixSuggestionDisplay suggestions for fixing issuestrue
--exportPdfExports a designed pdf (More at docs/reporter)false

Log Levels

The following log levels are available:

  • INFO: Standard information
  • WARN: Warning messages
  • ERROR: Error messages
  • DEBUG: Detailed debug information
  • SYSTEM: System-level messages

Jobs

ngForever runs a series of jobs to check your Angular application. Each job focuses on specific optimization or convention checks.

Currently Available Jobs

FindNgForWithoutTrackByCallbackJob

Detects *ngFor directives that don't implement a trackBy callback function, which can lead to performance issues.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

To run the app locally for development:

Option One (Build and Run):

Bash

npm run build
node .dist/index.js --path "some-directory-for-testing"

You can add other options as needed. Replace "some-directory-for-testing" with the path to the directory you want to analyze.

Option Two (Debugging):

Use a debugger (e.g., in your IDE) and update the arguments with the relevant options.

License

MIT - See LICENSE file for details

Support

If you encounter any issues or have questions, please file an issue on the GitHub repository. Example output:

Keywords

angular

FAQs

Package last updated on 05 Feb 2025

Did you know?

Socket

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.

Install

Related posts