You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

zi

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zi

CSS post-processor

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

#Zi

is a CSS post-processor.

###zi.config is the important bit: it returns a json object that looks a lot like normal css. replace this method with your own.

###the zi.css method injects a synthetic style tag into the head of the html document, if it's not there, and injects the css.

###the zi.transform method just transforms the results of the zi.config method into a string appropriate to injection into that style tag.

##Why do this?

  • because I'm a contrarian
  • because i would rather not keep track of both a CSS and JS file for every iteration of my app
  • because sometimes i need to do a calculation for styles based on the client and i don't want $.css junk all over the place
  • because once upon a time i needed the entire css/html base of an app as a single long string

Keywords

css

FAQs

Package last updated on 07 May 2015

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