js-error-finder

1.0.0 • Public • Published

JS Error Finder

JS Error Finder is a lightweight npm package that detects syntax errors in JavaScript files and provides detailed error messages, including line and column numbers.

Features

  • Validate entire .js files for syntax errors.
  • Provides error messages with line and column numbers.
  • Command-line interface (CLI) support for easy usage.

Installation

npm install -g js-error-finder

Usage
Command Line
Run the CLI with the file path as an argument:
js-error-finder path/to/file.js

Programmatic
Use it in your Node.js scripts:
javascript
Copy code

const findJsErrors = require('js-error-finder');
const result = findJsErrors('path/to/file.js');
console.log(result);

Example Output
Errors found:
- Unexpected string
  Error at line 3, column 27.


This `README.md` gives a concise overview of how to install and use the package, along with an example of its output.

Package Sidebar

Install

npm i js-error-finder

Weekly Downloads

7

Version

1.0.0

License

MIT

Unpacked Size

3.1 kB

Total Files

4

Last publish

Collaborators

  • vpalve07