Socket
Socket
Sign inDemoInstall

dasmaql-svelte

Package Overview
Dependencies
22
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dasmaql-svelte

A Svelte component providing an example of how DasmaQL can be utilized. DasmaQL is a lightweight query language used for data retrieval.


Version published
Weekly downloads
1
Maintainers
1
Install size
266 kB
Created
Weekly downloads
 

Readme

Source

DasmaQL Svelte - Work in Progress

The DasmaQL component is a Svelte component built on top of the npm package dasmaql. It provides support for highlighting, autocompletion, and model generation, which can be utilized in both frontend and backend applications.

Features

  • Highlighting: Svelte DasmaQL component supports syntax highlighting for enhanced readability and understanding of DasmaQL queries.
  • Autocompletion: It offers autocompletion functionality to assist users in typing DasmaQL queries more efficiently and accurately.
  • Model Generation: The component can generate DasmaQL query models based on provided fields and search callbacks, facilitating easier integration with backend systems.

Example Usage

Parameters

  • fields: An array of valid fields for autocompletion suggestions.
  • callbackSearch: A callback function to search for parameters based on the provided field and search query.
<script lang="ts">

    const callbackSearch = (field: string, search: string): (string | { label: string })[] => {
        // Placeholder for search functionality
        // Replace with actual search logic
    
        // Return dummy search result for example
        return [label: '"some result"'];
    };
</script>

<DasmaQl {fields} {callbackSearch} />

Demo

Demo

Keywords

FAQs

Last updated on 20 Feb 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc