Installations
npm install egg-view-nunjucks-require
Developer Guide
Typescript
No
Module System
N/A
Min. Node Version
>=8.0.0
Node Version
9.6.1
NPM Version
5.6.0
Score
67.5
Supply Chain
94.5
Quality
75.3
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
yongbo000
Download Statistics
Total Downloads
1,419
Last Day
3
Last Week
16
Last Month
25
Last Year
102
GitHub Statistics
4 Commits
2 Watching
1 Branches
1 Contributors
Package Meta Information
Latest Version
1.1.2
Package Id
egg-view-nunjucks-require@1.1.2
Unpacked Size
7.30 kB
Size
3.19 kB
File Count
6
NPM Version
5.6.0
Node Version
9.6.1
Total Downloads
Cumulative downloads
Total Downloads
1,419
Last day
0%
3
Compared to previous day
Last week
700%
16
Compared to previous week
Last month
525%
25
Compared to previous month
Last year
-56.6%
102
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
egg-view-nunjucks-require
安装
npm i egg-view-nunjucks-require --save
使用场景
如nunjucks模版如下
1<html> 2 <body> 3 {% require 'assets/index.js' %} 4 </body> 5</html>
本地开发将输出如下:
1<html> 2 <body> 3 <script type="text/javascript" src="/assets_index.js"></script> 4 </body> 5</html>
正式线上将输出如下:
1<html> 2 <body> 3 <script type="text/javascript" src="http://xxx.demo.com/assets_index-hash.js"></script> 4 </body> 5</html>
搭配 egg-staticlocal 使用提升研发效率
依赖的插件
开启插件
1// config/plugin.js 2exports.nunjucksRequire = { 3 enable: true, 4 package: 'egg-view-nunjucks-require', 5};
详细配置
请到 config/config.default.js 查看详细配置项说明。
提问交流
请到 egg-view-nunjucks-require issues 异步交流。
License
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More