Skip to content

Commit d54c285

Browse files
committed
renamed module to css-what, v1.0.0
1 parent 907e493 commit d54c285

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"author": "Felix Böhm <me@feedic.com> (http://feedic.com)",
3-
"name": "CSSwhat",
3+
"name": "css-what",
44
"description": "a CSS selector parser",
5-
"version": "0.4.7",
5+
"version": "1.0.0",
66
"repository": {
7-
"url": "https://github.com/FB55/CSSwhat"
7+
"url": "https://github.com/fb55/css-what"
88
},
99
"main": "./index.js",
1010
"files": [

readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#CSSwhat [![Build Status](https://secure.travis-ci.org/fb55/CSSwhat.svg?branch=master)](http://travis-ci.org/fb55/CSSwhat)
1+
# css-what [![Build Status](https://secure.travis-ci.org/fb55/css-what.svg?branch=master)](http://travis-ci.org/fb55/css-what)
22

33
a CSS selector parser
44

5-
##Example
5+
## Example
66

77
```js
8-
require('CSSwhat')('foo[bar]:baz')
8+
require('css-what')('foo[bar]:baz')
99

1010
~> [ [ { type: 'tag', name: 'foo' },
1111
{ type: 'attribute',
@@ -18,11 +18,11 @@ require('CSSwhat')('foo[bar]:baz')
1818
data: null } ] ]
1919
```
2020

21-
##API
21+
## API
2222

2323
__`CSSwhat(selector, options)` - Parses `str`, with the passed `options`.__
2424

25-
The function returns a two-dimensional array. The first array represents subselects separated by commas (eg. `sub1, sub2`), the second contains the relevant tokens for that selector. Possible token types are:
25+
The function returns a two-dimensional array. The first array represents selectors separated by commas (eg. `sub1, sub2`), the second contains the relevant tokens for that selector. Possible token types are:
2626

2727
name | attributes | example | output
2828
---- | ---------- | ------- | ------
@@ -39,7 +39,7 @@ name | attributes | example | output
3939

4040
__Options:__
4141

42-
- `xmlMode`: When enabled, tagnames will be case-sensitive (ie. the output won't be lowercased).
42+
- `xmlMode`: When enabled, tag names will be case-sensitive (meaning they won't be lowercased).
4343

4444
---
4545

0 commit comments

Comments
 (0)