css-parse-file

1.0.2 • Public • Published

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 对像。

Package Sidebar

Install

npm i css-parse-file

Weekly Downloads

1

Version

1.0.2

License

GPL-3.0

Last publish

Collaborators

  • hikaliv