Need advice about which tool to choose?Ask the StackShare community!
node-sass vs Sass: What are the differences?
What is node-sass? *Node.js bindings to libsass *. It is a library that provides binding for Node.js to LibSass, the C version of the popular stylesheet preprocessor, Sass It allows you to natively compile .scss files to css at incredible speed and automatically via a connect middleware..
What is Sass? Syntactically Awesome Style Sheets. Sass is an extension of CSS3, adding nested rules, variables, mixins, selector inheritance, and more. It's translated to well-formatted, standard CSS using the command line tool or a web-framework plugin.
node-sass and Sass can be categorized as "CSS Pre-processors / Extensions" tools.
node-sass and Sass are both open source tools. It seems that Sass with 12K GitHub stars and 1.93K forks on GitHub has more adoption than node-sass with 6.49K GitHub stars and 949 GitHub forks.
Originally, I was going to start using Sass with Parcel, but then I learned about Stylus, which looked interesting because it can get the property values of something directly instead of through variables, and PostCSS, which looked interesting because you can customize your Pre/Post-processing. Which tool would you recommend?
Pros of node-sass
Pros of Sass
- Variables613
- Mixins593
- Nested rules466
- Maintainable410
- Functions299
- Modular flexible code149
- Open source143
- Selector inheritance112
- Dynamic107
- Better than cs96
- Used by Bootstrap5
- If and for function3
- Better than less2
- Inheritance (@extend)1
- Custom functions1
Sign up to add or upvote prosMake informed product decisions
Cons of node-sass
- Needs Microsoft BuildTools and Python 2.7 to install1
Cons of Sass
- Needs to be compiled6