Socket
Book a DemoInstallSign in
Socket

@kalxjs-framework/compiler-sfc

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kalxjs-framework/compiler-sfc

Single File Component compiler for KalxJS.

latest
Source
npmnpm
Version
0.1.5
Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

@kalx/compiler-sfc

Single File Component compiler for KalxJS.

Installation

npm install @kalx/compiler-sfc

Usage

import { parse } from '@kalx/compiler-sfc'

const source = `
<template>
  <div>{{ message }}</div>
</template>

<script>
export default {
  data() {
    return { message: 'Hello' }
  }
}
</script>
`

const { template, script } = parse(source)

Keywords

kalxjs

FAQs

Package last updated on 05 May 2025

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