npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

highlightjs_fenl

v0.1.0

Published

Syntax highlighting for Fenl.

Readme

License

NPM Version

CDN download

Fenl syntax highlighting for highlight.js

Fenl is the query language for Kaskada specialized for processing timestamped event data. This repository contains the Fenl syntax highlighting for highlight.js.

Usage

Static web pages

Simply load this module after loading Highlight.js. See below on how to generate the minified version for fenl.

<script type="text/javascript" src="/path/to/highlight.min.js"></script>
<script type="text/javascript" src="/path/to/fenl.min.js"></script>
<!-- Use any stylesheet you'd like - though it's best to choose from 
	those in highlightjs core repo -->
<link rel="stylesheet" href="https://unpkg.com/highlightjs/styles/vs.css" />
<script type="text/javascript">
  hljs.highlightAll();
</script>

This will find and highlight code inside <pre><code> tags; it does not to detect the language automatically so please specify fenl for the language.

<pre>
    <code class="language-fenl">
        # How many big purchases happen each hour and where?
        # Anything can be named and re-used
        let hourly_big_purchases = Purchase
        | when(Purchase.amount > 10)
        
        # Filter anywhere
        | count(window=since(hourly()))
        
        # Aggregate anything
        | when(hourly())
        
        # Shift timelines relative to each other
        let purchases_now = count(Purchase)
        let purchases_yesterday =
           purchases_now | shift_by(days(1))
        
        # Records are just another type
        in { hourly_big_purchases, purchases_in_last_day: purchases_now - purchases_yesterday }
    </code>
</pre>

For more details on usage, see highlight.js usage.

Using directly from jsDelivr

<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/highlight.min.js"></script>
<script
  type="text/javascript"
  src="https://cdn.jsdelivr.net/npm/highlightjs_fenl/dist/fenl.min.js"></script>

With Node or another build system

If you're using Node / Webpack / Rollup / Browserify, etc, simply require the language module, then register it with Highlight.js.

var hljs = require('highlightjs');
var hljsFenl = require('highlightjs_fenl');

hljs.registerLanguage('fenl', hljsFenl);
hljs.highlightAll();

Development Setup

For the full details please read the highlightjs documentation,

  • language contributor checklist: https://highlightjs.readthedocs.io/en/latest/language-contribution.html

    • third-party quickstart: https://github.com/highlightjs/highlight.js/blob/master/extra/3RD_PARTY_QUICK_START.md
  • general information on building and testing: https://highlightjs.readthedocs.io/en/latest/building-testing.html

Quickstart

  1. Make sure node and npm are available to you.

  2. Clone the main highlight.js repository:

    git clone https://github.com/highlightjs/highlight.js.git
  3. Install dependencies

    $ cd .../highlight.js
    $ npm install
  4. Clone this repo (or create a fork) into the extra directory:

    $ cd extra
    $ git clone https://github.com/USERNAME/highlightjs-chapel
  5. Make sure things work as expected:

    npm run build_and_test

    Specifically, at the end of this test run, you should see output for each of the tests in test/markup/chapel/, e.g.

 fenl
    ✔ have a name
    ✔ have 27 regex matchers
    ✔ should not use octal escapes
    ✔ should not cause exponential backtracking
    ✔ should not cause polynomial backtracking

NOTE: fenl currently does not support autodetection, one test will fail but you can ignore it for now.

  1. Run
npm run build-cdn
  1. Copy build/languages/fenl.min.js to this repo's dist folder and commit the changes.

Build minified version

Run

npm run build-cdn

Once the build is complete you can find the minified version in build/languages/fenl.min.js