https://github.com/matype/css-border-property
Parser and stringifier of `border` property
https://github.com/matype/css-border-property
Last synced: 11 months ago
JSON representation
Parser and stringifier of `border` property
- Host: GitHub
- URL: https://github.com/matype/css-border-property
- Owner: matype
- License: other
- Created: 2015-07-26T03:35:41.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-27T06:02:09.000Z (almost 11 years ago)
- Last Synced: 2025-08-09T04:05:57.786Z (12 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# css-border-property [](https://travis-ci.org/morishitter/css-border-property)
Parser and Stringifier of `border` property
## Install
```shell
$ npm install css-border-property
```
## Usage
```js
var border = require('css-border-property')
border.parse('1px solid #eee')
/*
[
{ property: 'border-width', value: '1px' },
{ property: 'border-style', value: 'solid' },
{ property: 'border-color', value: '#eee' }
]
*/
border.stringify([
{ property: 'border-width', value: '1px' },
{ property: 'border-style', value: 'solid' },
{ property: 'border-color', value: '#eee' }
])
/* '1px solid #fff' */
```
## License
The MIT License (MIT)
Copyright (c) 2015 Masaaki Morishita