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
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 | |
| 2.0.6 | ^2.6.14 | ISC | |
| 2.0.5 | ^2.6.14 | ISC | |
| 2.0.4 | ^2.6.14 | ISC | |
| 2.0.3 | ^2.6.14 | ISC | |
| 2.0.2 | ^2.6.14 | ISC | |
| 2.0.1 | ^2.6.14 | ISC | |
| 2.0.0 | ISC | ||
| 1.2.18 | ISC | ||
| 1.2.16 | ISC | ||
| 1.2.15 | ISC | ||
| 1.2.13 | ISC | ||
| 1.2.12 | ISC | ||
| 1.2.11 | ISC | ||
| 1.2.10 | ISC | ||
| 1.2.9 | ISC | ||
| 1.2.8 | ISC | ||
| 1.2.7 | ISC | ||
| 1.2.6 | ISC | ||
| 1.2.5 | ISC | ||
| 1.2.4 | ISC | ||
| 1.2.3 | ISC | ||
| 1.2.2 | ISC | ||
| 1.2.1 | ISC | ||
| 1.2.0 | ISC | ||
| 1.1.9 | ISC |
Showing the latest 30 of 49. See every release on npm