Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

kss-parse

tomsky25MIT0.1.8

Parse KSS – documentation syntax for CSS.

readme

kss-parse

Parse KSS, documentation syntax for CSS, and return as structured data. Originally forked from kss-node.

Usage

var kss = require('kss-parse');
kss.getSections('./scss/', { mask: '*.scss' }, function(err, styleguide) {
    console.log(styleguide);

    //Flatten one of the sections
    var section = kss.flattenSection(styleguide[8]);
    console.log(section);
});