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 🙏

© 2024 – Pkg Stats / Ryan Hefner

npm-ssc-tool

v0.0.5

Published

css预处理器,css preprocessor

Downloads

4

Readme

ssc

一款css处理器,参数式声明,属性选择器分离 适用于于轻量级项目的开发,语法简洁,书写便利,复用性高 块状分发选择器方便小程序的多个wxss集成在一个文件中书写

前言

该工具诞生为了解决重复声明相同属性带来的重复工作,原子级的属性复用

环境

推荐node 16 ,但本包并未引入第三方依赖,其他版本node暂未测试

安装

npm i npm-ssc-tool

使用

语法

attr:   //属性块
    width // 属性名
        (100px):A001 // 冒号前为属性值,冒号后为选择器指针
        (200px):A002,A003
    height
        (100px):A001
        (200px):A002,A003
select: //选择器块
    ~path./js/oldFile.vue     // ~path 声明编译后的路径
    A001=>.btn                // A001 为指针 .btn 为选择器类名
    A002=>div
    ~path./js/ssc.css         // 可写多个路径分发选择器
    A003=>.a

编译后

<style lang="scss">   // 在vue和html后缀的文件中会自动放入style标签内
 .btn{width:100px;height:100px;} div{width:200px;height:200px;}
</style>              // 在wxss和css后缀的文件中会直接写入

三大特性

  • 原子级别的复用
  • 块状分发编译后文件
  • 简洁的语法,比stylus更简洁

计划实现功能

该工具还处于比较粗糙的初期阶段,欢迎和我一起

  • typescript重构优化
  • 更多的错误捕捉
  • vscode语法插件
  • 修改大大小小的bug