New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

simple-tokenizer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-tokenizer

Simple CSS tokenizer

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Simple CSS tokenizer

This is a library for parsing stylesheets.

Unlike proper tokenizers, it is not designed for precision, it is designed for speed.

Code works in browser and in Node.js

What does it do?

It takes css code, splits it into array of selector and rule tokens. It can also build css from array of tokens, that can be used for stuff like simple nested css parser.

Usage

See unit tests for sample code.

This library was originally designed for private project, so there isn't much documentation.

Building browser package

To build browser package run "grunt"

License

This library is licensed under MIT license. That means you can use it in both open source and commercial projects.

Keywords

css

FAQs

Package last updated on 25 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts