🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@totemstan/skin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@totemstan/skin

TOTEM web skinner

latest
Source
npmnpm
Version
1.14.0
Version published
Maintainers
1
Created
Source

SKIN

SKIN provides a:

renderSkin(req,res)

endpoint to render DEBE notebooks, datasets, and engines using the (possibly dynamically generated) jade associated with the requested notebook/table/engine.

Manage

npm install @totemstan/skin		# Install
npm run start [ ? | $ | ...]	# Unit test
npm run verminor				# Roll minor version
npm run vermajor				# Roll major version
npm run redoc					# Regen documentation

Usage

Acquire and optionally configure SKIN:

const SKIN = require("skin").config({
	key: value, 						// set key
	"key.key": value, 					// indexed set
	"key.key.": value					// indexed append
});

where configuration keys follow ENUMS deep copy conventions

Program Reference

Open/Close

SKIN

Provides an endpoint to render DEBE notebooks, datasets, and engines using the (possibly dynamically generated) jade associated with the requested notebook/table/engine. This module documented in accordance with jsdoc.

Requires: module:enums, module:fs, module:cluster, module:jade@1.9.0
Author: ACMESDS

SKIN.skinContext(req, cb)

Callback cb with skinning context ctx for requested table.

Kind: static method of SKIN

ParamTypeDescription
reqObjectTotem request
cbfunctioncallback(ctx)

SKIN.renderJade(jade, ctx, cb)

Render jade string to callback cb( err || html ) in a new context created for this request.

Kind: static method of SKIN

ParamTypeDescription
jadeStringcontents to render
ctxObjectskinning context
cbfunctioncallback(ctx)

SKIN.renderSkin(req, res)

Endpoint to render req.table using associated jade engine.

Kind: static method of SKIN

ParamTypeDescription
reqObjectTotem request
resfunctionTotem response

Contacting, Contributing, Following

Feel free to

License

MIT

© 2012 ACMESDS

FAQs

Package last updated on 08 Oct 2022

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