Skip to content

Commit

Permalink
ADD: bower.json
Browse files Browse the repository at this point in the history
  • Loading branch information
futurist committed Sep 6, 2016
1 parent 1d06d7e commit 1995713
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Expand Up @@ -61,14 +61,20 @@ Then all `div` will have css **color: blue;**. No jQuery, no wait for **DOM**, n

- **cssobj will only update changed value, good for performance!**

===

## Install:

**npm**

``` javascript
npm install cssobj
```

**bower**

``` javascript
bower install cssobj
```

## Quick Start:

Including **dist/cssobj.min.js** into `<head>`, using as below:
Expand Down Expand Up @@ -102,7 +108,7 @@ var obj = {
span: { color: 'blue' }
}
}
var result = cssobj(obj, {local:true})
var result = cssobj(obj, {local:true}) // { local: {prefix:'my-prefix-'} }
```

This will generate [CSSOM](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model) in your `<head>`, with below css:
Expand Down
35 changes: 35 additions & 0 deletions bower.json
@@ -0,0 +1,35 @@
{
"name": "cssobj",
"description": "CSS Rules from JS, change rules dynamically, CSS in JS solution, CSSOM from js, getting and setting CSS stylesheet rules, css modules, auto prefixer, media query for old browsers. CSS in React/Angular/Vue/Ember/Mithril/jQuery",
"main": "dist/cssobj.cjs.js",
"authors": [
"James Yang <jamesyang999@gmail.com>"
],
"license": "MIT",
"keywords": [
"cssom",
"prefixer",
"css",
"generate",
"diff",
"css",
"media",
"query",
"css",
"modules"
],
"moduleType": [
"amd",
"es6",
"globals",
"node"
],
"homepage": "https://github.com/cssobj/cssobj",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}

0 comments on commit 1995713

Please sign in to comment.