New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

acorn-qml

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn-qml

QML Parser

  • 0.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-55.56%
Maintainers
1
Weekly downloads
 
Created
Source

acorn-qml

Base on eclipse/cdt/qt/org.eclipse.cdt.qt.core/acorn-qml/

Add ES7 Mix compilation. 支持与ES7混合编译(PS:import关键字使用qml的语法解析)

Install

# acorn module has been installed 
npm install acorn-qml --save

Usage

正常ES5的QML-Parser

const acorn  = require("acorn");
require("acorn-qml").install(acorn);

var code = `YOUR QML CODE.`

acorn.parse(code, {
    plugins: {
        qml: true
    },
    ecmaVersion: 5,
});

与ES7混编的QML-Parser

const acorn  = require("acorn");
require("acorn-qml").install(acorn);

var code = `YOUR QML CODE.`

const res = acorn.parse(code, {
    plugins: {
        qml: true
    },
    ecmaVersion: 7,
    ignoreQmlEcmaVersion: true
});

FAQs

Package last updated on 02 Apr 2016

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