cpf

css-parse-file

CSS File Parser

Showing:

Popularity

Downloads/wk

1

GitHub Stars

0

Maintenance

Last Commit

5yrs ago

Contributors

0

Package

Dependencies

1

Size (min+gzip)

12.4KB

License

GPL-3.0

Type Definitions

Tree-Shakeable

No?

Categories

Readme

CSS File Parser

This is Sino document. If you need English version, please translate the content with help of ‘Google Translate’ by yourself. Have a fun with the ‘power’ of ‘Google Translate’.

css 只能处理字串,本工程用来处理文件。

安装

npm install --save css-parse-file

用法

'use strict'

const parser = require('css-parse-file')

const promised = parser('yours.css')

promised.then(console.log)

接口

parser(filename[, encoding])

参数:

  • filename,css 文件全文件名
  • encoding,可选参数,文件编码,默认为 utf8

返回值是 Promise 对像。

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100