npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

node-sass-compiler

v1.0.1

Published

A compiler for scss and sass files to css

Readme

sass-compiler

NPM Version NPM Downloads Node.js Version License

A compiler for scss and sass files to css

Installation

Install the package using npm or yarn as a dev dependency.

NPM

npm install --save-dev node-sass-compiler

Yarn

yarn add --dev node-sass-compiler

Basic usage

sass-compiler

This command will compile all the scss and sass files in the . directory and will output the css files in the same directory.

For customize the input and output directories you must create a sass-compiler.config.js file in the root of your project.

module.exports = {
    entries: [
        {
            baseDir: './src/app/scss',
            outputDir: './src/app/css',
        }
    ]
}

It replies the directory structure of the baseDir directory in the outputDir directory.

You can create multiple entries to compile multiple directories.

Advanced usage

There are some options you can use to customize the compilation process.

  • entries: An array of objects that specify the input and output directories. Each object should have a baseDir property (the directory containing the scss/sass files) and an outputDir property (the directory where the compiled css files will be saved).+
    • baseDir: The directory containing the scss/sass files. This
    • outputDir: The directory where the compiled css files will be saved. The directory structure of the baseDir directory will be replicated in the outputDir directory.
    • filenames: A regex pattern to match the filenames of the scss/sass files to compile.
    • minify: A boolean value that indicates whether to minify the compiled css files. Default is false.
    • sourceMap: A boolean value that indicates whether to generate source maps for the compiled css files. Default is false.
  • output: An optional object that specifies the output options for the compiled css files.
    • filename: The name of the compiled css file. You can use placeholders like [name] and [hash] to customize the filename.
      • [name]: The name of the scss/sass file without the extension.
      • [hash]: A 8-character hash of the content of the scss/sass file.
    • manifest: An optional object that specifies the manifest options for the compiled css files.
      • path: The path to the manifest file.
      • filename: The name of the manifest file. If not specified, it will default to manifest.json.

Development

If you don't want to run the command every time you make a change in the scss files, you can use the --watch flag.

sass-compiler --watch

Options

  • --watch: Watch the files for changes and recompile them on the fly.
  • --config: Specify the path to the configuration file. By default, it will look for a sass-compiler.config.js file in the root of your project.
  • --verbose: Show more information about the compilation process.
  • --version or -v: Show the version of the package.
  • --help or -h: Show the help message.

Author

Juan Carlos Martínez - juancarlosmartinez