# slue-module

> A tool of analyse modules relationship.

Latest version **2.0.11** (published 2022-10-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install slue-module
pnpm add slue-module
yarn add slue-module
bun add slue-module
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.11 |
| Published | 2022-10-15 |
| First published | 2018-06-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 11.3 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Author | 471665225@qq.com |
| Maintainers | songgenlei |
| Keywords | web, require, import, pack, module, js, jsx, css, less, html |

## Links

- npm: https://www.npmjs.com/package/slue-module
- npm.io page: https://npm.io/package/slue-module

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.24.0
- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [ant-design](https://npm.io/package/ant-design.md) ^1.0.0
- [ant-design-vue](https://npm.io/package/ant-design-vue.md) ^1.7.8

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 2.0.11 (latest) — 2022-10-15
- 2.0.10 — 2022-10-15
- 2.0.9 — 2022-10-15
- 2.0.8 — 2022-09-09
- 2.0.7 — 2022-09-06
- 2.0.6 — 2022-09-06
- 2.0.5 — 2022-03-10
- 2.0.4 — 2022-03-10
- 2.0.3 — 2021-11-24
- 2.0.2 — 2021-11-23
- 2.0.1 — 2021-11-22
- 2.0.0 — 2021-11-17
- 1.2.18 — 2021-11-17
- 1.2.16 — 2021-11-17
- 1.2.15 — 2021-11-17
- … 34 more at https://npm.io/package/slue-module/versions

## README

# slue-module

A tool of analyse modules relationship.

## API
```javascript
const slueModule = require('slue-module');
let realyData = slueModule(options);
```

## options：
```javascript
{
    // the file to analyse
    filePath: './test/app.js',

    root: '/',

    prevHandler() {}

    // external global variables
    externals: {
        'react': 'React'
    },

    // when exclude return true, the required module will be ignore
    exclude: function(opts) {
        return opts.moduleId == 'xxx';
    },

    // the ext names of the files which to analyse
    ext: ['.js', '.jsx', '.css', '.less', '.html'],

    // alias make module require shorter
    alias: {
        components: path.join(__dirname, './components')
    }
};
```

## output:
```javascript
{
    // file path and it's require id
    moduleList: [
        {
            id: 'xxx', // require id
            dir: 'xxx' // file path
        }
    ],

    // all handled files, used file path to be key
    handledFile: {}
};
```

---
_Source: https://npm.io/package/slue-module · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
