scss-tokenizer

WebJar for scss-tokenizer

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

scss-tokenizer
Last Version

Last Version

0.2.3
Release Date

Release Date

Type

Type

jar
Description

Description

scss-tokenizer
WebJar for scss-tokenizer
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sasstools/scss-tokenizer

Download scss-tokenizer

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/scss-tokenizer/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>scss-tokenizer</artifactId>
    <version>0.2.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/scss-tokenizer/
implementation 'org.webjars.npm:scss-tokenizer:0.2.3'
// https://jarcasting.com/artifacts/org.webjars.npm/scss-tokenizer/
implementation ("org.webjars.npm:scss-tokenizer:0.2.3")
'org.webjars.npm:scss-tokenizer:jar:0.2.3'
<dependency org="org.webjars.npm" name="scss-tokenizer" rev="0.2.3">
  <artifact name="scss-tokenizer" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='scss-tokenizer', version='0.2.3')
)
libraryDependencies += "org.webjars.npm" % "scss-tokenizer" % "0.2.3"
[org.webjars.npm/scss-tokenizer "0.2.3"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : js-base64 jar [2.1.8,3)
org.webjars.npm : source-map jar [0.4.2,0.5)

Project Modules

There are no modules declared in this project.

scss-tokenizer

A tokenizer for Sass' SCSS syntax

https://travis-ci.org/sasstools/scss-tokenizer.svg?branch=master https://www.npmjs.com/package/scss-tokenizer https://github.com/sasstools/scss-tokenizer/issues

Install

npm install scss-tokenizer

Usage

var scss = require('scss-tokenizer');
scss.tokenize(css);

API

tokenize

Tokenizes source css and returns an ordered array of tokens with positional data.

var tokenizer = require('scss-tokenizer');
var tokens = tokenize.tokenize(css);

Arguments:

  • css (string|#toString): String with input CSS or any object with toString() method, like file stream.
  • opts (object) optional: options:
    • from: the path to the source CSS file. You should always set from, because it is used in map generation and in syntax error messages.

Test

npm test

Attribution

This project started as a fork of the PostCSS tokenizer.

org.webjars.npm

Sass Tools

Building tools to help you write better Sass

Versions

Version
0.2.3