Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
doc-templater
Advanced tools
Compiles a tree of Github-flavored markdown files into themable HTML templates. Supports pulling directly from multiple remote or local git repositories and exposes lifecycle hooks for transforming markdown input (beforeConvert) or HTML output (afterConv
Compiles a tree of Github-flavored markdown files into themable HTML templates. Supports pulling directly from multiple remote or local git repositories and exposes lifecycle hooks for transforming markdown input (beforeConvert
) or HTML output (afterConvert
). Also writes flat tree arrays representing the directory hierarchy as JSON files (these are saved as .jsmenu
files currently, but never fear, they're just normal JSON).
This module is used for the official Sails website at http://sailsjs.org.
$ npm install doc-templater --save
require('doc-templater')().build({
remote: 'git@github.com:balderdashy/sails.git',
remoteSubPath: '',
branch: 'master',
cachePath: '/code/sandbox/doctemplatertest/foo/bar/cache/',
htmlDirPath: '/code/sandbox/doctemplatertest/foo/bar/html',
jsMenuPath: '/code/sandbox/doctemplatertest/foo/bar.jsmenu'
}, function (err,result) {
// If something went wrong...
if (err) {
console.log('ERROR:\n',require('util').inspect(err, false, null));
return;
}
// Otherwise, it worked!
console.log('RESULT:\n',require('util').inspect(result, false, null));
});
#####v0.1.0 August 2014
Refactored to use smaller, more testable modules and enhance stability. Also added some caching/performance improvements.
#####v0.0.9 May 2014
Now supports git branches, infinitely deep docs directories, and outputting json menus with template metaData attached (use
<docmeta name="keyname" value="keyvalue">
inside of templates).
MIT © 2013-2015 Nicholas Crumrine, Mike McNeil & contributors
This module is an official part of the Sails framework ecosystem, and is free and open-source under the MIT License.
FAQs
Compiles a tree of Github-flavored markdown files into themable HTML templates. Supports pulling directly from multiple remote or local git repositories and exposes lifecycle hooks for transforming markdown input (beforeConvert) or HTML output (afterConv
The npm package doc-templater receives a total of 187 weekly downloads. As such, doc-templater popularity was classified as not popular.
We found that doc-templater demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.