slue-module

A tool of analyse modules relationship.
7,676
Install
npm install slue-module
Latest Version:2.0.11
Vue:2
License:ISC
Last Updated:Oct 15, 2022
Links: npm
Maintainer: songgenlei

slue-module

A tool of analyse modules relationship.

API

const slueModule = require('slue-module');
let realyData = slueModule(options);

options:

{
    // 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:

{
    // 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: {}
};

Related Packages

bz-antd-ui

基于antd vue组件库的二次开发项目

6,492
@blossom-carousel/web

A native-scroll-first carousel component for the web.

23,472 1,052
@blossom-carousel/vue

A native-scroll-first carousel component for Vue.

9,694 1,052
my-adminlte3-package

Paquete personalizado con AdminLTE para Nuxt

2,885

Version History

Version Released Vue License
2.0.11 ^2.6.14 ISC
2.0.10 ^2.6.14 ISC
2.0.9 ^2.6.14 ISC
2.0.8 ^2.6.14 ISC
2.0.7 ^2.6.14 ISC