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 🙏

© 2026 – Pkg Stats / Ryan Hefner

code-correctly-sass

v1.0.0

Published

- for config and setup environment for sass automatically :

Readme

Code Correctly SASS !

Setup environment for sass :

  • for config and setup environment for sass automatically :

    npm i install

    You can config and setup environment manually :

  • 1- initialize npm for your project :

    npm init
  • 2- install sass :

    npm i sass --save-dev

    to installing sass globally :

    npm i sass -g
  • 3- install PostCSS-cli and autoprefixer (for auto prefixed your css to be supported in all browsers ):

    npm install postcss-cli autoprefixer --save-dev
  • 5-install npm-run-all to run multiple npm-scripts in parallel or sequential:

    npm i npm-run-all --save-dev

Getting started :

Explain 7-1 SASS architecture :

It is always a good idea to keep things organized, today let’s organize SASS code. It’s really good for Front-End Developers and especially for Big projects.

Let me explain one of the best SASS architecture so-called 7-1 SASS architecture :

Abstracts\ :

The abstract folder is different from other folders. Styles written in this folder do not compile to CSS. They are the helpers for other folders. Two major SASS Abstracts are variables,mixins,functions,placeholders,responsive rules,etc.

Base\

The base folder is like a foundation style for the project,like a redefine rem unit and reset the style of the default HTML elements.

Layout\

The layout folder contains the style for a website layout.This folder includes style for the navbar, sidebar, footer, header, etc.

Components\

Components are a set of codes which has their character. It might be just one HTML element or a block of HTML elements.like : Alert box, button, label, badge, list group, panel, modal are some of the common components we see on websites.

Pages\

The pages folder covers the style of specific pages. like a contact us,home,services,etc.

Themes\

Themes folder is related to look of your project. It could be Light theme, dark theme, blue theme, etc..

Vendors\

This Folder contains all external styles or 3rd party styles are placed in it. libraries,frameworks. The most commonly used vendors are Bootstrap,bulma,animate.css,tailwind.css,etc.

main.scss

This file is the main sass file,that's will converted to css this file contains an access for other files like a components and responsive rules and more..

When we have a web site contains a multi pages, we need to add sass file that contains components and requirement like: example_page.scss

Start coding Now :

1-Development Mode :

  • To watch all changes happens in sass architecture :

    npm sass --watch sass/:dist/

    or use :

    npm run watch:sass
  • To compile sass to css :

    npm sass sass/:dist/

    or use :

    npm run compile:sass
  • To auto prefix all css files :

    npx postcss --use autoprefixer dist/ -o dist/

    or use :

    npm run prefix:css
  • To compress css files :

    npm sass dist/*.css dist/*.compress.css --style=compressed

    or use :

    npm run compress:css
  • To build all files :

    npm npm-run-all compile:sass prefix:css compress:css

    or use :

    npm run build

Contributing :

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.😉

enjoy !