https://github.com/matype/sort-border-values
Sort values of CSS border propety
https://github.com/matype/sort-border-values
Last synced: 9 months ago
JSON representation
Sort values of CSS border propety
- Host: GitHub
- URL: https://github.com/matype/sort-border-values
- Owner: matype
- License: other
- Created: 2015-07-26T17:43:31.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-05T01:22:07.000Z (almost 11 years ago)
- Last Synced: 2025-02-16T01:34:58.336Z (over 1 year ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# sort-border-values [](https://travis-ci.org/morishitter/sort-border-values)
Sort values of CSS border propety
## Installation
```shell
$ npm install sort-border-values
```
## Example
```js
var sort = require('sort-border-value')
sort('#ddd solid 1px') // '1px solid #ddd'
sort('#ddd solid 1px', 'swc') // 'solid 1px #ddd'
```
## Usage
### `sort(values, format)`
`values`: values of CSS border property.
`format`: format of sort.
- `'s'`: style
- `'w'`: width
- `'c'`: color
Default is `'wsc'`.
## License
The MIT License (MIT)
Copyright (c) 2015 Masaaki Morishita