</>PackageGraphPackageGraph

node-sass

npmv9.0.0Deprecated

Wrapper 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.

14
Direct dependencies

Runtime packages this one declares itself.

17
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

6.2 MB
Install size

Unpacked size of this package plus its entire runtime tree.

4
Tree depth

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

BlueOak-1.0.0ISCMIT

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.

javascriptFull 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.

PackageWeekly downloadsDependentsLicenseLast release
node-sassthis page811.9K0MIT3 years ago
sass30.1M4MIT7 hours ago
less02Apache-2.07 hours ago
react-style-singleton64.1M2MIT1 day ago
csstype02MIT4 hours ago
@adobe/css-tools02MIT6 hours ago

Dependencies

Declared by node-sass v9.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (14)

async-foreach ^0.1.3chalk ^4.1.2cross-spawn ^7.0.3gaze ^1.0.0get-stdin ^4.0.1glob ^7.0.3lodash ^4.17.15make-fetch-happen ^10.0.4meow ^9.0.0nan ^2.17.0node-gyp ^8.4.1sass-graph ^4.0.1stdout-stream ^1.4.0true-case-path ^2.2.1

Dev (6)

eslint ^8.0.0fs-extra ^10.0.0mocha ^9.0.1nyc ^15.1.0rimraf ^3.0.2unique-temp-dir ^1.0.0

Relationship graph

Dependencies (left) and dependents (right) of node-sass.

cross-spawngloblodashnannode-sass
node-sass dependencies dependents

Release history

No releases in the last two years, typically about 67 days apart.

Recent versions of node-sass
VersionPublishedSizeLicense
9.0.0latest3 years ago1.7 MBMIT
8.0.03 years ago9.8 MBMIT
7.0.33 years ago4.4 MBMIT
7.0.23 years ago4.4 MBMIT
7.0.14 years ago4.4 MBMIT
7.0.04 years ago4.4 MBMIT
6.0.15 years ago1.8 MBMIT
6.0.05 years ago1.8 MBMIT
5.0.05 years ago1.8 MBMIT
4.14.16 years ago1.8 MBMIT
4.14.06 years ago1.8 MBMIT
4.13.16 years ago1.8 MBMIT
4.13.06 years ago1.8 MBMIT
4.12.07 years ago1.8 MBMIT
4.11.07 years ago1.8 MBMIT

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.

Maintainers

Keywords

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.