package
A very simple and fast SCSS Symbols parser
npm install scss-symbols-parserGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
20.1 kB
Includes dependencies.
A very simple and fast SCSS Symbols parser.
$ npm i -S scss-symbols-parserPrimarily, this module is designed to work with vscode-scss extension.
const symbolsParser = require('scss-symbols-parser');
const symbols = symbolsParser.parseSymbols('$a: 1;');
// console.log(symbols);
// {
// variables: [ { name: '$a', value: '1', offset: 0 } ],
// mixins: [],
// functions: [],
// imports: []
// }variable
stringstringnumbermixin
stringvariable[]numberfunction
stringvariable[]numberimport
stringstring[]boolean (filepath contains #, { or } or filepaths contains // – URLs)boolean (filepath contains css extension or mode)See the Releases section of our GitHub project for changelogs for each release version.
This software is released under the terms of the MIT license.