node-sass
npmv9.0.0DeprecatedWrapper around libsass
Deprecation notice: Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead.
Not recommended for new projects
No — node-sass should not be adopted for new projects. Explicitly marked deprecated by its publisher. This package runs an install script on your machine.
- BAdoption: grade B, Good.
811.9K downloads per week.
- FMaintenance: grade F, Failing.
Explicitly marked deprecated by its publisher.
- BWeight: grade B, Good.
Pulls in 17 transitive packages, about 6.2 MB installed (at least — some of the tree is still being crawled).
- CSupply chain: grade C, Fair — worth a look.
This package runs an install script on your machine.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding node-sass to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing node-sass, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=16
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- Runs on install
Installing this package executes a script defined by its publisher. That is normal for native modules, but it is also how supply-chain attacks run — review it before installing in CI or on a machine with credentials.
Quick start
A usage example from the node-sass README.
var sass = require('node-sass');
sass.render({
file: scss_filename,
[, options..]
}, function(err, result) { /*...*/ });
// OR
var result = sass.renderSync({
data: scss_content
[, options..]
});node-sass vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| node-sassthis page | 811.9K | 0 | MIT | 3 years ago |
| sass | 30.1M | 4 | MIT | 7 hours ago |
| less | 0 | 2 | Apache-2.0 | 7 hours ago |
| react-style-singleton | 64.1M | 2 | MIT | 1 day ago |
| csstype | 0 | 2 | MIT | 4 hours ago |
| @adobe/css-tools | 0 | 2 | MIT | 6 hours ago |
Dependencies
Declared by node-sass v9.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (14)
Dev (6)
Relationship graph
Dependencies (left) and dependents (right) of node-sass.
Release history
No releases in the last two years, typically about 67 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 9.0.0latest | 3 years ago | 1.7 MB | MIT |
| 8.0.0 | 3 years ago | 9.8 MB | MIT |
| 7.0.3 | 3 years ago | 4.4 MB | MIT |
| 7.0.2 | 3 years ago | 4.4 MB | MIT |
| 7.0.1 | 4 years ago | 4.4 MB | MIT |
| 7.0.0 | 4 years ago | 4.4 MB | MIT |
| 6.0.1 | 5 years ago | 1.8 MB | MIT |
| 6.0.0 | 5 years ago | 1.8 MB | MIT |
| 5.0.0 | 5 years ago | 1.8 MB | MIT |
| 4.14.1 | 6 years ago | 1.8 MB | MIT |
| 4.14.0 | 6 years ago | 1.8 MB | MIT |
| 4.13.1 | 6 years ago | 1.8 MB | MIT |
| 4.13.0 | 6 years ago | 1.8 MB | MIT |
| 4.12.0 | 7 years ago | 1.8 MB | MIT |
| 4.11.0 | 7 years ago | 1.8 MB | MIT |
Overview
node-sass is a deprecated npm package that wrapper around libsass. It is very popular, with about 811.9K downloads per week. The latest version is 9.0.0, released under the MIT license.
Who should use it
node-sass is deprecated and is best avoided for new projects. Existing users should plan a migration to a maintained alternative.
When not to use it
Do not adopt this package for new work — it is no longer maintained.
Pros
- Large, well-established user base (811.9K weekly downloads).
- Clear open-source license (MIT).
Cons
- Marked deprecated: Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead.
- Large dependency tree (20 direct dependencies) increases install size and audit surface.
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use node-sass?
No — node-sass should not be adopted for new projects. Explicitly marked deprecated by its publisher. This package runs an install script on your machine.
How do I install node-sass?
Run `npm install node-sass` to add node-sass to your npm project.
How many dependencies does node-sass have?
node-sass declares 20 direct dependencies and pulls in 17 packages in total once its runtime tree is resolved totalling about 6.2 MB on disk.
What license is node-sass released under?
node-sass is distributed under the MIT license. Its dependency tree also includes: BlueOak-1.0.0, ISC, MIT.
How popular is node-sass?
node-sass has approximately 811,947 downloads per week.
Is node-sass still maintained?
No — node-sass is marked as deprecated: Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead.. Consider a maintained alternative for new projects.
Does node-sass run install scripts?
Yes. node-sass defines a lifecycle script that executes when the package is installed. Review it before installing in CI or on a machine holding credentials.