sass downloads · last 12 months
Sass is a CSS preprocessor implemented in JavaScript and distributed as the `sass` npm package. It compiles Sass stylesheets into CSS, letting developers use Sass syntax and language features as part of a stylesheet build workflow rather than writing only plain CSS.
The package is the JavaScript implementation of Dart Sass, with the goal of making Sass compilation available to JavaScript projects and tooling. It is aimed at developers who author Sass files and need compilation from a Node.js environment, including through build tools or application-specific scripts.
The package exposes a JavaScript API for compiling Sass, alongside command-line usage for stylesheet workflows. Compilation can be integrated programmatically so a tool can supply Sass source or files and consume generated CSS; the CLI provides a direct route for projects that need to compile styles without writing their own integration code.
Sass fits into frontend build pipelines wherever CSS is generated from Sass source, including workflows that use framework tooling capable of compiling Sass. It can be used as a build dependency or invoked from scripts, allowing Sass compilation to sit alongside other asset-processing steps; the package is categorized around CSS preprocessing and is tagged with Sass and Dart Sass topics.
The supplied package data reports version 1.108.2, 35.2 million weekly downloads, 4.2K GitHub stars, 384 forks, and an MIT license. Its unpacked size is 6.1 MB and its listed gzip bundle size is 720.7 kB, so teams should account for that footprint when evaluating client-side delivery; Sass is generally used during stylesheet compilation rather than shipped as browser runtime code.
Sass adds a compilation step and requires the project’s Sass source to be processed before the resulting CSS is used. The provided information does not specify compatibility details, individual language features, or performance guarantees, so verify those against the package documentation for your runtime and build setup; the listing reports 73 open issues and a last-updated date of 2026-11-11.
- When a project’s stylesheets are authored in Sass and need to be compiled to CSS from a Node.js build step; use the package’s JavaScript API or CLI.
- When a build script needs to compile Sass source programmatically and pass the generated CSS into later asset-processing steps; integrate compilation through the package API.
- When a frontend build workflow already supports Sass compilation and needs the `sass` package as its Sass implementation dependency.
- When stylesheet compilation should run as a command-line step rather than through custom JavaScript; use the package’s CLI in the build workflow.
- When maintaining a Sass-based CSS codebase and aligning its compilation with the JavaScript tooling ecosystem, use this package as the Sass compiler.
- When working with Sass or Dart Sass tooling and you need the implementation identified by the package’s Sass and Dart Sass topics.
- If the project only needs to serve hand-written CSS and has no Sass source to compile, omit the Sass compilation step and use CSS directly.
- If styles must be generated at runtime in the browser, do not rely on this package as a browser runtime; compile Sass to CSS during a build or choose a browser-oriented approach.
- If the deployment environment cannot run a Sass compilation step, generate the CSS in an earlier build environment and deploy the compiled output.
- If the listed 720.7 kB gzip bundle size is unsuitable for the intended client-side payload, avoid shipping the compiler to browsers and keep Sass compilation in the build process.
- If the project requires specific runtime compatibility or language-feature guarantees that are not established by the supplied package data, verify the documentation and test the target setup before adopting it.
- If the project does not use Sass or Dart Sass workflows, a Sass compiler adds an unnecessary stylesheet-processing step; use the project’s existing CSS workflow instead.
CORRECTIONS
Spot wrong data here?Spot wrong data on this page?
A short note helps us fix it.A short note helps us fix it. We read every one; confirmed fixes ship in the next nightly build.
Anonymous · No account · No email back