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

circular-dependency-scanner

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circular-dependency-scanner - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

CHANGELOG.md

@@ -0,4 +1,11 @@

# 1.0.1
## Fixes
- fix: can't run ds command with npm global install.
# 1.0.0
## Features
- feat: Supply JavaScript API and Command Line Tool.

12

package.json
{
"name": "circular-dependency-scanner",
"version": "1.0.0",
"version": "1.0.1",
"type": "module",
"description": "Out-of-box and zero configuration circular dependencies detector, with both JavaScript API and Command Line Tool.",

@@ -10,9 +11,4 @@ "packageManager": "pnpm@7.17.1",

},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "./types/src/index.d.ts",
"exports": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"main": "dist/index.mjs",
"types": "types/src/index.d.ts",
"scripts": {

@@ -19,0 +15,0 @@ "prepare": "husky install",

@@ -5,12 +5,14 @@ # circular dependencies scanner ⚡

<a href="https://npmjs.com/package/circular-dependency-scanner">
<img src="https://img.shields.io/npm/v/circular-dependency-scanner" alt="npm package">
<img alt="npm version" src="https://img.shields.io/npm/v/circular-dependency-scanner">
</a>
<img alt="Publish Package" src="https://github.com/emosheeep/circular-dependency-scanner/actions/workflows/npm-publish.yml/badge.svg">
<img src="https://img.shields.io/npm/dt/circular-dependency-scanner" alt="npm downloads">
<img src="https://img.shields.io/npm/l/circular-dependency-scanner" alt="npm downloads">
<img src="https://img.shields.io/bundlephobia/minzip/circular-dependency-scanner" alt="package size">
<img alt="npm downloads" src="https://img.shields.io/npm/dt/circular-dependency-scanner">
<img alt="license" src="https://img.shields.io/npm/l/circular-dependency-scanner">
<img alt="bundle size" src="https://img.shields.io/bundlephobia/minzip/circular-dependency-scanner">
</div>
Out-of-box and zero configuration circular dependencies detector 📦, with both JavaScript API and Command Line Tool.
Out-of-box circular dependencies detector, with both JavaScript API and Command Line Tool built in, support all file types we used in common like `.js,.jsx,.ts,.tsx,.mjs,.cjs,.vue`.
Pull out `import/require/export` path from files and revert it into to real path (if aliased) with path alias configurations, then calculate the circles among and print which with colors.
English | [中文](./README.zh_CN.md)

@@ -20,2 +22,3 @@

- 📦 All file types support.
- 💡 Friendly Command Line Tool.

@@ -36,3 +39,3 @@ - 🛠️ Fully Typed JavaScript APIs and Prompts.

The `ds` command will be available after you installed this package globally.
The `ds` command which means `depscan` will be available after you installed this package globally.

@@ -39,0 +42,0 @@ ```sh

@@ -5,11 +5,13 @@ # circular dependencies scanner ⚡

<a href="https://npmjs.com/package/circular-dependency-scanner">
<img src="https://img.shields.io/npm/v/circular-dependency-scanner" alt="npm package">
<img alt="npm version" src="https://img.shields.io/npm/v/circular-dependency-scanner">
</a>
<img alt="Publish Package" src="https://github.com/emosheeep/circular-dependency-scanner/actions/workflows/npm-publish.yml/badge.svg">
<img src="https://img.shields.io/npm/dt/circular-dependency-scanner" alt="npm downloads">
<img src="https://img.shields.io/npm/l/circular-dependency-scanner" alt="npm downloads">
<img src="https://img.shields.io/bundlephobia/minzip/circular-dependency-scanner" alt="package size">
<img alt="npm downloads" src="https://img.shields.io/npm/dt/circular-dependency-scanner">
<img alt="license" src="https://img.shields.io/npm/l/circular-dependency-scanner">
<img alt="bundle size" src="https://img.shields.io/bundlephobia/minzip/circular-dependency-scanner">
</div>
零配置、开箱即用📦的循环依赖检测工具,提供了 JavaScript API 和命令行工具。
开箱即用循环依赖检测器,内置了 JavaScript API 和命令行工具两种使用方式,支持我们常用的所有文件类型,如 `.js,.jsx,.ts,.tsx,.mjs,.cjs,.vue`。
从文件中取出 `import/require/export` 路径,并使用路径别名配置(alias)将其还原为真实路径(如果有别名的话),然后计算其中的循环引用关系并输出。

@@ -20,2 +22,3 @@ [English](./README.md) | 中文

- 📦 支持常用的所有类型文件类型。
- 💡 提供命令行工具,同时具备友好的控制台输出。

@@ -36,3 +39,3 @@ - 🛠️ 提供 JavaScript API,同时具备良好的类型提示。

全局安装之后,会获得一个可执行命令 `ds`:
全局安装之后,会获得一个可执行命令 `ds`(`depscan` 缩写):
```sh

@@ -39,0 +42,0 @@ pnpm i -g circular-dependency-scanner # or npm/yarn

Sorry, the diff of this file is not supported yet

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