Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including tacnoman-scss-tokenizer with all npm packages installed. Try it out:

var tacnomanScssTokenizer = require("tacnoman-scss-tokenizer")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

tacnoman-scss-tokenizer v0.3.1

A tokenzier for Sass' SCSS syntax


A tokenizer for Sass' SCSS syntax


npm install scss-tokenizer


var scss = require('scss-tokenizer');



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

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


  • 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.


npm test


This project started as a fork of the PostCSS tokenizer.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free