Socket
Book a DemoInstallSign in
Socket

jade-filters

Package Overview
Dependencies
Maintainers
5
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jade-filters

Code for processing filters in jade templates

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
5
Created
Source

jade-filters

Code for processing filters in jade templates

Build Status Dependency Status NPM version

Installation

npm install jade-filters

Usage

var filters = require('jade-filters');

filters.handleFilters(ast, filters)

Renders all Filter nodes in a Jade AST (ast), using user-specified filters (filters) or a JSTransformer.

filters.runFilter(name, str[, options[, currentDirectory]])

Invokes filter through jstransformer.

This is internally used in filters.handleFilters, and is a lower-level interface exclusively for invoking JSTransformer-based filters.

name represents the name of the JSTransformer.

str represents the string to render.

currentDirectory is used when attempting to require the transformer module.

options may contain the following properties:

  • minify (boolean): whether or not to attempt minifying the result from the transformer. If minification fails, the original result is returned.

License

MIT

Keywords

jade

FAQs

Package last updated on 14 Nov 2015

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