1.10.0 • Published 2 years ago

css-image-checker v1.10.0

Weekly downloads
25
License
MIT
Repository
github
Last release
2 years ago

css-image-checker

Checks if all images in a local CSS file exists

What does it do?

css-image-checker can check CSS files for invalid referenced images

Usage

npm install -g css-image-checker
css-image-checker --folder '/www-folder'

Example

Consider the following code:

#logo a {
    background: url(logo.png) no-repeat -42px -271px;
}

but you only have logo.jpg image available.

Running css-image-checker --folder '/www-folder'

The output will be:

Error found in: style.css
Full path not found: /www-folder/logo.png
Path in CSS file: logo.png

Number of errors: 1

Exit codes

0 = No errors
1 = Errors were founds in the CSS files
2 = No folder were specified on command line
3 = Folder specified does not exists
4 = Folder specified is not a folder

Continuous Integration

css-image-checker can be used in CI environments to check your CSS files before merging a pull request

Badges

CircleCI

codecov

StyleCI

Known Vulnerabilities

Total alerts

1.10.0

2 years ago

1.9.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago