Code Monkey home page Code Monkey logo

parser's Introduction

CSS Parser

CSS Object Model

See src/values/README.md.

Commands

Benchmark

npm run benchmark
> node run/benchmark.tokenize.js


Collecting PostCSS Tokenizer Benchmarks...

PostCSS Tokenizer (7.0.32):      49872 tokens in  9 ms
PostCSS Tokenizer (Development): 58823 tokens in 11 ms (1.2 times slower)


> node run/benchmark.parse.js


Collecting PostCSS Parser Benchmarks...

PostCSS Parser (7.0.32):         6240 values in 12 ms
PostCSS Parser (Development):   58823 values in 34 ms (2.9 times slower)
PostCSS/Selector/Value Parsers: 28491 values in 74 ms (6.3 times slower)

Build

npm run build
┌─────────────────────────────────┐
│                                 │
│   Destination: dist/index.cjs   │
│   Bundle Size:  39.16 KB        │
│   Minified Size:  12.51 KB      │
│   Gzipped Size:  3.32 KB        │
│                                 │
└─────────────────────────────────┘
┌─────────────────────────────────┐
│                                 │
│   Destination: dist/index.mjs   │
│   Bundle Size:  38.97 KB        │
│   Minified Size:  12.34 KB      │
│   Gzipped Size:  3.27 KB        │
│                                 │
└─────────────────────────────────┘
┌─────────────────────────────────────┐
│                                     │
│   Destination: dist/index.iife.js   │
│   Bundle Size:  9.31 KB             │
│   Minified Size:  9.31 KB           │
│   Gzipped Size:  2.8 KB             │
│                                     │
└─────────────────────────────────────┘

Test

npm run test

All checks should pass.

parser's People

Contributors

jonathantneal avatar eddyw avatar equinusocio avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.