Bot releases are hidden (Show)
Full Changelog: https://github.com/sasstools/scss-tokenizer/compare/v0.4.2...v0.4.3
Published by xzyfer almost 6 years ago
prepublishOnly
npm script (@xzyfer, ae79d74)Published by xzyfer almost 6 years ago
Published by xzyfer almost 6 years ago
endInterpolant
not being captured (@xzyfer, #20)package-lock.json
Published by xzyfer over 6 years ago
Published by xzyfer over 7 years ago
This script is used to transpile the es6 files before publishing but in npm@<5 is runs after the tarball has been created. This results the package being published without the transpiled files 😱
Published by xzyfer over 7 years ago
Explicitly add index.js to the package.json files array (#12)
This shouldn't be necessary but may resolve an issue with npm@<1.4.0.
See #12
Published by xzyfer over 7 years ago
/
Characters we're being swallowed after /
which broken the cases
like @import foo/bar;
. The second ident
bar
would be tokenized
as only r
.
See #7
Published by xzyfer over 7 years ago
The comment tokenizer was failing to exit when comments were missing trailing whitespace before */
.
See #6
Published by xzyfer over 7 years ago
CSS style comments (
/* */
) are allow interpolants (#{$foo}
),
and disallow everything else.
See #5
Remove some old dependencies that no long worked with Node >= 4 (b40c729) and test against more Node engines in travis (79dd087).
Begin the test suite. It's still rudimentary (a87c091).
The sass-spec suite was being submoduled in for the tests. They have recently created an npm package we're now using that (50c21ea).
Published by xzyfer over 7 years ago
npm install scss-tokenizer
scss.tokenize(css)
tokenize
Tokenizes source css
and returns an ordered array of tokens with positional
data.
var tokenize = require('scss-tokenizer');
var tokens = tokenize.tokenize(css);
Arguments:
css (string|#toString)
: String with input CSS or any objecttoString()
method, like file stream.opts (object) optional
: options:
from
: the path to the source CSS file. You should always set from
,