cssobj-core
Version:
Generate Virtual CSS middle format, support for all cssobj functions and plugins.
45 lines (24 loc) • 1.67 kB
Markdown
# CSSOBJ-CORE [](https://gitter.im/css-in-js/cssobj)
[](https://travis-ci.org/cssobj/cssobj-core)
[](https://coveralls.io/github/cssobj/cssobj-core?branch=master)
[](https://david-dm.org/cssobj/cssobj-core)
[](https://www.bithound.io/github/cssobj/cssobj-core)
Generate **Virtual CSS** middle format, support for all cssobj functions and plugins.
**Notice** The core API is different than [cssobj][]
[cssobj]: https://github.com/cssobj/cssobj
## API
### cssobj_core (config?: object) -> cssobj_factory_function
The `config` param is almost the same as [cssobj][], but **without** `local` and `cssom`
The `config` param has 2 props: `plugins`, `state`, the 2 are same as [cssobj][]
### cssobj_factory_function (obj?: object, state?: any) -> cssobj_result: object
All the things of `cssobj_factory_function` same as [cssobj][]
### cssobj_result
The `cssobj_result` almost same as [cssobj][], but **don't have** below
(below added by [cssobj-plugin-localize](https://github.com/cssobj/cssobj-plugin-localize) in [cssobj][])
- `space`
- `localNames`
- `mapClass`
- `mapSel`
- `cssdom`
(below added by [plugin-cssom](https://github.com/cssobj/cssobj-plugin-cssom) in [cssobj][])
- `cssdom`