🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

jtrans

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jtrans

前端开发环境

latest
npmnpm
Version
1.2.2
Version published
Weekly downloads
1
-95.83%
Maintainers
1
Weekly downloads
 
Created
Source

jtrans

前端开发环境

  • 编译es6789到es5

    • 支持async/await

    • 支持class属性定义

    • 支持可选链

    • 私有特性,自动编译js中{pug[...]pug}的pug代码为html

      
      //foo.js
      let template;
      
      template="{pug[div: img]pug}`"
      //template="<div><img/></div>" 
      
      template="{pug[$foo.pug]pug}`"
      //foo.pug中的内容为"div: img"
      //template="<div><img/></div>" 
      
      
      //以上语句等价于
      template="{pug[]pug}`"
      
      //使用绝对位置置入pug
      template="{pug[/src/$foo.pug]pug}`"
      
      
  • 编译less到css

  • pug到html

安装

npm install jtrans

或者

yarn add jtrans

全局安装

npm install -g jtrans

使用

jtrans dev

所有配置

jtrans dev

jtrans watch


# 所有配置

jtrans build --src=src --dist=dist --build-clean --disabled-treeshake --port=4560 --src-base=src


FAQs

Package last updated on 11 Nov 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