Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jaw

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jaw

Parasitize CSS to JSX for migi

  • 4.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Parasitize CSS into JSX for migi

jaw取自动漫寄生兽中寄生于下巴上的Parasite,意指将css寄生在jsx上。

NPM version Build Status Coverage Status Dependency Status

INSTALL

npm install jaw

logo

文档

https://github.com/migijs/jaw/wiki/%E6%96%87%E6%A1%A3

API

  • parse(code:String, option:Object):JSON 传入要解析的css代码,返回格式化好的json对象,option参数如下
  • noMedia:Boolean 无需default和media键,即没有media query逻辑,如事件代理使用
  • noValue:Boolean 无需值,在有值的时候_v字段仅为true,如事件代理使用
  • noPriority:Boolean 无需优先级,json中没有_p字段
  • tokens():Array<Token> 返回css的token列表
  • ast():Object 返回css的语法树

Demo

License

[MIT License]

Keywords

FAQs

Package last updated on 03 Feb 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc