4

I need to modify CSS file from a script and I want to make sure I don't break it.

Is there any command line tool that understands CSS structures and allows to edit them?

TLDR; I need jq command but for CSS files, a command line CSS parser/editor.

6
  • Are you going to reinvent sass?
    – muru
    Commented Oct 5, 2019 at 6:16
  • all I want is to edit a css file automatically but without worrying about breaking it
    – korda
    Commented Oct 7, 2019 at 7:38
  • Then look into sass.
    – muru
    Commented Oct 7, 2019 at 7:50
  • I don't really see how sass helps here... Could you elaborate on how I could achieve this with sass?
    – korda
    Commented Oct 7, 2019 at 12:43
  • oh, did you meant to convert it to scss and then work with sass on it and compile into css? I look into it
    – korda
    Commented Oct 7, 2019 at 12:48

1 Answer 1

0

Yes. You can use csso-cli or 'csso'.

Run npm install -g csso-cli.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.