# node-ssi **Repository Path**: fefeding/node-ssi ## Basic Information - **Project Name**: node-ssi - **Description**: Server Side Includes for NodeJS - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-01 - **Last Updated**: 2024-11-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README node-ssi ======== [![Build Status](https://travis-ci.org/67726e/node-ssi.png)](https://travis-ci.org/67726e/node-ssi) Server Side Includes for NodeJS __Warning:__ I am no longer supporting this project. If you are interested in taking over, please get in touch. __Note:__ The current version of ssi does all IO synchronously. Further development plans include writing methods asynchronously and migrating current methods to conform to Node conventions for synchronous methods. ### Supported Instructions ```html ``` ### Installation ```bash npm install ssi ``` ### Usage ```javascript var ssi = require("ssi"); var inputDirectory = "/tmp/test"; var outputDirectory = "/tmp/output"; var matcher = "/**/*.shtml"; var includes = new ssi(inputDirectory, outputDirectory, matcher); includes.compile(); ``` ### Methods #### parse(filename, contents) _filename_ `String` path to the file _contents_ `String` Contents of the file to be parsed Method returns the parsed contents #### compile() Method parses all of the files found by the matcher in the input directory, and writes the files to the output directory with identical names and directory structure. ### License MIT