read-css
Read a CSS file into an AST. AST format is from the css.parse
method. Methods work like fs.readFile
and fs.readFileSync
. If you supply a callback, method will be async. If not, method will be sync.
install
npm install read-css
usage
const read = require('read-css')
sync usage
// tree
async usage
const callback = { if err throw err console}
output
const read =
View sample AST output in test.json
develop
npm install
npm test