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

bento-generator

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bento-generator

基于文件内容生成对应网页代码

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Bento-Generator-Web

基于文件内容生成对应网页代码

开发说明

  • 取属性值参看 -> Bento-File-Format
  • 生成class参看 -> Class-Lib

值的转换

<space>, <size>, <radius> 等,如果值是数字,需要被转换成 rem, n = n * 1rem / 16,方法见 https://github.com/BentoTeam/Bento-Transfer/blob/master/transfer.js

结构

Bento-Generator-Web/
    |
    ├──src/
        ├──fucntions/
            ├──class/           生成class的方法
            ├──style/           生成style的方法
            inlineStyle.js      直接生成inline style
            num2rem.js          数值转换方法
        index.js                主要文件分配和属性配置

FAQs

Package last updated on 13 Nov 2017

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