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.
akasharender
Advanced tools
Rendering support for generating static HTML websites or EPUB eBooks
AkashaCMS is a collection of static website generation tools. The primary purpose is publishing websites, but a related set of tools called AkashaEPUB allows one to generate EPUB documents.
AkashaRender is the core tool for AkashaCMS/AkashaEPUB.
The available commands are:
Usage: akasharender [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
copy-assets <configFN> Copy assets into output directory
document <configFN> <documentFN> Show information about a document
render-document <configFN> <documentFN> Render a document into output directory
render [options] <configFN> Render a site into output directory
explain <configFN> Explain a cache query
watch <configFN> Track changes to files in a site, and rebuild
anything that changes
gh-pages-publish [options] <configFN> Publish a site using Github Pages. Takes the
rendering destination, adds it into a branch,
and pushes that to Github
config <configFN> Print a site configuration
docdirs <configFN> List the documents directories in a site
configuration
assetdirs <configFN> List the assets directories in a site
configuration
partialdirs <configFN> List the partials directories in a site
configuration
layoutsdirs <configFN> List the layouts directories in a site
configuration
documents <configFN> List the documents in a site configuration
docinfo <configFN> <docFN> Show information about a document in a site
configuration
tags <configFN> List the tags
search [options] <configFN> Search for documents
assets <configFN> List the assets in a site configuration
assetinfo <configFN> <docFN> Show information about an asset in a site
configuration
layouts <configFN> List the layouts in a site configuration
layoutinfo <configFN> <docFN> Show information about a layout in a site
configuration
partials <configFN> List the partials in a site configuration
partialinfo <configFN> <docFN> Show information about a partial in a site
configuration
help [command] display help for command
The configuration file parameter, configFN, is the filename for a JavaScript file that sets up an AkashaRender configuration object.
The typical usage for the commands is with these package.json
scripts:
"scripts": {
"prebuild": "akasharender copy-assets config.js",
"build": "akasharender render config.js",
"deploy": "cd out && rsync --archive --delete --verbose ./ user-name@example.com:example.com/ "
}
The model is to have several input directories, containing content and assets for the resulting website, and one output directory for the rendered website (or EPUB). The possible input directories are:
assets
-- Files that are simply copied and require no renderingdocuments
-- Files that may require rendering, such as converting LESS to CSS, or Markdown/AsciiDoc to HTMLpartials
-- Template snippets that can be used anywhere in a documentlayouts
-- Page layout templatesThe prebuild
step uses copy-assets
to copy files from the assets directory to the rendering directory. The build
step then renders content from the documents directory to the rendering directory.
In this case the rendering directory is out
, and the deploy
step uses rsync
to upload that directory to a webserver.
AkashaCMS plugins extend the capabilities of the system.
For more information see:
FAQs
Rendering support for generating static HTML websites or EPUB eBooks
The npm package akasharender receives a total of 20 weekly downloads. As such, akasharender popularity was classified as not popular.
We found that akasharender 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.
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.