/ piacw.com / dev / final / node_modules / postcss-selector-parser /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]dist/2 years ago -  
[TXT]API.md2 years ago 20K0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]CHANGELOG.md2 years ago 18K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]LICENSE-MIT2 years ago1.1K0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]README.md2 years ago1.1K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]package.json2 years ago3.0K0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]postcss-selector-parser.d.ts2 years ago 19K0fb859dc fixed mobile overflwo options [كارل مبارك]
README.md

postcss-selector-parser Build Status

Selector parser with built in methods for working with selector strings.

Install

With npm do:

npm install postcss-selector-parser

Quick Start

const parser = require('postcss-selector-parser');
const transform = selectors => {
    selectors.walk(selector => {
        // do something with the selector
        console.log(String(selector))
    });
};

const transformed = parser(transform).processSync('h1, h2, h3');

To normalize selector whitespace:

const parser = require('postcss-selector-parser');
const normalized = parser().processSync('h1, h2, h3', {lossless: false});
// -> h1,h2,h3

Async support is provided through parser.process and will resolve a Promise with the resulting selector string.

API

Please see API.md.

Credits

License

MIT

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80