Socket
Socket
Sign inDemoInstall

@liquify/highlight

Package Overview
Dependencies
28
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @liquify/highlight

Syntax highlighting for Liquid on the command line


Version published
Weekly downloads
357
increased by53.22%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@liquify/highlight

Syntax highlighting for Liquid on the command line. Uses cli-highlight under the hood but does some extra post-processing when dealing with contained syntaxes. It applies Potion themed token colorization.

Why?

This module was created for usage by the Prettify CLI but has been appropriated in different packages and projects across the Liquify monorepo workspace.

Install

pnpm add @liquify/highlight ava -D

Usage

import highlight from '@liquify/highlight';

const string = `
{% if condition %}

  <div class="xxx">
    {{ object.prop | filter: 'something' }}
  </div>

{% endif %}
`

// Returns a coloured string
highlight(string)

// Logs the coloured string
highlight.log(string)

FAQs

Last updated on 06 Mar 2023

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