New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sassdoc-filter

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sassdoc-filter

SassDoc Filter ==============

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
37
increased by12.12%
Maintainers
4
Weekly downloads
 
Created
Source

SassDoc Filter

SassDoc data filter.

NPM version Build Status

Description

This repository contains a set of filters for SassDoc Data Interface.

These filters adds some features to SassDoc by post-processing the data. These features are optional, and not needed in the core, so it's the theme responsibility to apply filters on the raw data.

Filters

Markdown

The following elements are parsed as Markdown:

  • package.description
  • item.description
  • item.author[]
  • item.throws[]
  • item.todo[]
  • item.returns[].description
  • item.parameters[].description

Note: item is a shorthand for data[type][name], and [] in a key represents an array.

Display

Adds an item.display boolean property.

According to the configuration, the property will be true if the item matches the criteria.

Configuration (view.json)
{
  "display": {
    "access": ["public", "private"],
    "alias": false
  }
}

Group Name

Rewrite item.group property to include a configured friendly name for each group.

The @group annotation in your Scss files contains a simple slug. Then you map each slug to a friendly name in the configuration.

With the configuration below, an item.group looking like this:

{
  "group": [["hacks"]]
}

... will be rewritten like this:

{
  "group": {"hacks": "Dirty Hacks & Fixes"}
}
Configuration (view.json)
{
  "groups": {
    "slug": "Title",
    "helpers": "Helpers",
    "hacks": "Dirty Hacks & Fixes",
    "undefined": "Ungrouped"
  }
}

FAQs

Package last updated on 21 Aug 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc