Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

t2css

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

t2css

由vue Template模版骨架直接生成Scss/Less骨架

  • 0.1.5
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

vue-template-to-scss

由vue Template模版骨架直接生成Scss/Less骨架

##安装使用

 npm i -D t2css
 npx t2css sourceFilePath targetSourceFile
./a.vue文件
<template>
  <div class="testArea">
    <div class="instruction i1">
      <img class="img" src="@/images/common/pic_instructions@3x.png" alt="">
    </div>
    <div class="instruction1 i2">
      <p class="p">ssds</p>
      <img src="" alt="">
    </div>
    <div>
      <div class="is3">
        <div class="is33">
          <div>
            <div class="is333">
              <p>
                <img src="" alt="">
                <img src="" alt="">
                <img src="" alt="">
                <img src="" alt="">
                <img src="" alt="">
                <img src="" alt="">
                <img src="" alt="">
              </p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

执行命令:

  npx t2css ./a.vue ./a.scss

自动生成Scss骨架到a.scss文件, 内容如下

.testArea {
 .instruction {
   &.i1 {
   }
   .img {
   }
 }
 .instruction1 {
   &.i2 {
   }
   .p {
   }
   img {
   }
 }
 .is3 {
   .is33 {
     .is333 {
       img {
       }
     }
   }
 }
}

FAQs

Package last updated on 15 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc