Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
s0ph1e committed Apr 24, 2015
1 parent c70a84e commit 0fdcb27
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Introduction
Parse urls from css file

[![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)
[![Coverage Status](https://coveralls.io/repos/s0ph1e/node-css-url-parser/badge.svg)](https://coveralls.io/r/s0ph1e/node-css-url-parser)

## Installation
`npm install css-url-parser`

## Usage
```javascript
var parseCssUrls = require('css-url-parser');

var css = '@import "a.css"; .image { background-image: url(images/img.png); }';
var cssUrls = parseCssUrls(css);

console.log(cssUrls); // [ 'a.css', 'images/img.png' ]
```

0 comments on commit 0fdcb27

Please sign in to comment.