Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-peruse

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-peruse - npm Package Compare versions

Comparing version 1.3.2 to 1.4.2

src/gitValidate.js

10

bin/peruse.js

@@ -13,2 +13,3 @@ #!/usr/bin/env node

validateDocker,
validateGitCommits,
} from '../src/index.js';

@@ -30,3 +31,3 @@ import { logger } from '../src/logger.js';

program
.version('1.3.1')
.version('1.3.2')
.description('A CLI tool for analyzing Node.js applications')

@@ -40,3 +41,4 @@ .option('-d, --dependencies', 'Analyze dependencies')

.option('-os, --name', 'Detect os name')
.option('-dok, --dockerfile', 'Dockerfile validator');
.option('-dok, --dockerfile', 'Dockerfile validator')
.option('-g, --git', 'Validate Git commit best practices');

@@ -79,2 +81,6 @@ program.parse(process.argv);

}
if (options.git) {
await runTask('Validating Git commits', validateGitCommits);
}
})();

2

package.json
{
"name": "node-peruse",
"version": "1.3.2",
"version": "1.4.2",
"description": "A powerful CLI tool designed to analyze your node.js application.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -17,6 +17,8 @@ <div align="center">

- Analyze project dependencies
- Validate dockerfiles
- Git commit best practices Validator
- Check outdated dependencies
- Check Node.js version
- Check system memory usage
- Analyze project dependencies

@@ -42,12 +44,20 @@ There are many more features to come, so keep on eye on this repository.

### 1. Analyze project dependencies
### 1. Check or validate dockerfiles
Use the `--dependencies` option to analyze and list all dependencies in your project.
Find issues in your dockerfiles (e.g., Dockerfile, compose.yml), use the `--dockerfile` flag.
```bash
node-peruse --dependencies
node-peruse --dockerfile
```
### 2. Check outdated dependencies
### 2. Git commit best practices validator
This feature scans recent Git commits to ensure they follow best practices: (e.g., feat:, fix:, chore:, etc.)
```bash
node-peruse --git
```
### 3. Check outdated dependencies
To check outdated packages in your project, use the `--outdated` flag.

@@ -59,3 +69,3 @@

### 3. Check Node.js version
### 4. Check Node.js version

@@ -68,3 +78,3 @@ To check node.js version, use the `--node-check` flag.

### 4. Check system memory usage
### 5. Check system memory usage

@@ -77,3 +87,3 @@ To check system memory is sufficient, use the `--memory-check` flag.

### 5. Check unused dependencies
### 6. Check unused dependencies

@@ -86,3 +96,3 @@ To check unused dependencies in you node.js application, use the `--unused` flag.

### 6. Check your os architecture
### 7. Check your os architecture

@@ -95,3 +105,3 @@ To get os architecture, use the `--arch` flag.

### 7. Check your os name
### 8. Check your os name

@@ -104,8 +114,8 @@ To get your os name, use the `--name` flag.

### 8. Check or validate dockerfiles
### 9. Analyze project dependencies
Find issues in your dockerfiles (e.g., Dockerfile, compose.yml), use the `--dockerfile` flag.
Use the `--dependencies` option to analyze and list all dependencies in your project.
```bash
node-peruse --dockerfile
node-peruse --dependencies
```

@@ -112,0 +122,0 @@

@@ -7,1 +7,2 @@ export * from './depCheck.js';

export * from './dockerfileValidator.js';
export * from './gitValidate.js';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc