Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
public-header-copy
Advanced tools
pubilc header handler for DataGrand.com
npm i -D public-header
在项目根目录写入script.js
:
import publicHeader from "public-header"
publicHeader // true
在项目根目录配置public.json
:
{
"header": {
"template": true,
"style": false,
"script": false,
"src": "index.html" // todo: smart match files
},
"dgcsm": {}, //todo
"footer": {} //todo
}
HTML 模板
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<!--start:header-style-->
<!--end:header-style-->
</head>
<body>
<!--start:header-template-->
<!--end:header-template-->
<!--start:header-script-->
<!--end:header-script>
</body>
</html>
目前只能匹配单个文件,只能一次插入,实验性质,其他功能正在补全。请在个人实验项目中试用!
MIT © younixiao
FAQs
pubilc header handler for DataGrand.com
The npm package public-header-copy receives a total of 0 weekly downloads. As such, public-header-copy popularity was classified as not popular.
We found that public-header-copy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.