Skip to content

Commit 0fdcb27

Browse files
committed
Create README.md
1 parent c70a84e commit 0fdcb27

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Introduction
2+
Parse urls from css file
3+
4+
[![Build Status](https://img.shields.io/travis/s0ph1e/node-css-url-parser/master.svg?style=flat)](https://travis-ci.org/s0ph1e/node-css-url-parser)
5+
[![Coverage Status](https://coveralls.io/repos/s0ph1e/node-css-url-parser/badge.svg)](https://coveralls.io/r/s0ph1e/node-css-url-parser)
6+
7+
## Installation
8+
`npm install css-url-parser`
9+
10+
## Usage
11+
```javascript
12+
var parseCssUrls = require('css-url-parser');
13+
14+
var css = '@import "a.css"; .image { background-image: url(images/img.png); }';
15+
var cssUrls = parseCssUrls(css);
16+
17+
console.log(cssUrls); // [ 'a.css', 'images/img.png' ]
18+
```
19+

0 commit comments

Comments
 (0)