New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ssi-encode

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssi-encode

ssi middleware

latest
npmnpm
Version
2.0.1
Version published
Maintainers
1
Created
Source

ssi-encode

$ npm i ssi-encode

nodejsにssiをサポートします。 node-ssiを踏襲して、以下の機能を追加してます。

  • euc-jpのincludeファイルをutf-8へ変換
  • includeしているファイルの読み込み開始と終了をコメントで表示
<!-- #SSI-START:/www/xxx.html -->
 :
 :
<!-- #SSI-END:/www/xxx.html -->

Usage

const ssiEncode = require("ssi-encode");

ssiEncode({
  baseDir: __dirname,
  ext: ".html",
  routes:{
    "/_include/": __dirname
  }
})

changelog

  • 2020/12/10: includeしているファイルの読み込み開始と終了をコメントで表示
<!-- #SSI-START:/www/xxx.html -->
 :
 :
<!-- #SSI-END:/www/xxx.html -->
  • 2024/5/14: pathGuideオプションでincludeしているファイルの読み込み開始と終了をコメントで表示する処理を切り替えらるようにした
ssiEncode({
  pathGuide: false
})

Keywords

ssi

FAQs

Package last updated on 14 May 2024

Did you know?

Socket

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.

Install

Related posts