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

yuidoc-filters

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yuidoc-filters - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json

@@ -18,3 +18,3 @@ {

],
"version": "0.0.1"
"version": "0.0.2"
}
# yuidoc-filters
A YUIDoc preprocessor for filtering out parts of documentation
## Installation
To install `yuidoc-filters`, simply run `npm install --save-dev yuidoc-filters` in your npm project root.
## Usage
To use on an existing yuidoc project, add the following entries to your `yuidoc.json` file:
```javascript
{
...
"preprocessor": "yuidoc-filters",
"yuidoc-filters-exclude": ["private", "deprecated"]
}
```
`yuidoc-filters-exclude` takes an array of exclusion types. Currently yuidoc filters only filters classes marked private or deprecated.
function isPrivateClass(item) {
return item.hasOwnProperty('access') && item.access === 'private';
return item.access === 'private';
};
function isDeprecatedClass(item) {
return item.hasOwnProperty('deprecated') && item.deprecated === true;
return item.deprecated === true;
};

@@ -48,4 +48,4 @@

for(var className in originalClasses) {
if (contains(Object.keys(data.classes), className)) {
namespaceClasses[className] = 1;
if (data.classes.hasOwnProperty(className)) {
namespaceClasses[className] = originalClasses[className]
}

@@ -52,0 +52,0 @@ }

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