Skip to content

Commit 9c785af

Browse files
committed
Initial commit
0 parents  commit 9c785af

File tree

11 files changed

+103
-0
lines changed

11 files changed

+103
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
support
2+
test
3+
examples
4+
*.sock

History.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
0.0.1 / 2010-01-03
3+
==================
4+
5+
* Initial release

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
test:
3+
@./node_modules/.bin/mocha \
4+
--require should \
5+
--reporter spec
6+
7+
.PHONY: test

Readme.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
# css-parse
3+
4+
CSS parser
5+
6+
## License
7+
8+
(The MIT License)
9+
10+
Copyright (c) 2012 TJ Holowaychuk <tj@vision-media.ca>
11+
12+
Permission is hereby granted, free of charge, to any person obtaining
13+
a copy of this software and associated documentation files (the
14+
'Software'), to deal in the Software without restriction, including
15+
without limitation the rights to use, copy, modify, merge, publish,
16+
distribute, sublicense, and/or sell copies of the Software, and to
17+
permit persons to whom the Software is furnished to do so, subject to
18+
the following conditions:
19+
20+
The above copyright notice and this permission notice shall be
21+
included in all copies or substantial portions of the Software.
22+
23+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
24+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
26+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
27+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
28+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
29+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
module.exports = require('./lib/css-parse');

lib/css-parse.js

Whitespace-only changes.

package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "css-parse",
3+
"version": "0.0.1",
4+
"description": "CSS parser",
5+
"keywords": [],
6+
"author": "TJ Holowaychuk <tj@vision-media.ca>",
7+
"dependencies": {},
8+
"devDependencies": {
9+
"mocha": "*",
10+
"should": "*"
11+
},
12+
"main": "index"
13+
}

test/cases/rule.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
foo {
2+
bar: 'baz';
3+
}

test/cases/rule.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"stylesheet": {
3+
"rules": [
4+
{
5+
"selector": "foo",
6+
"declarations": [
7+
{
8+
"property": "bar",
9+
"value": "baz"
10+
}
11+
]
12+
}
13+
]
14+
}
15+
}

0 commit comments

Comments
 (0)