isCss is a Node.js package, return true if input is a valid Cascading Style Sheets
npm install @salsan/iscss
const isCss = require('@salsan/iscss')
const css = 'body { font-size: 12px; }'
isCss(css) // return TRUE
MIT License - Copyright 2022 Salvatore Santagati (mailto:[email protected])