New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@pomsky-lang/compiler-node

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pomsky-lang/compiler-node

A portable, modern regular expression language

latest
Source
npmnpm
Version
0.12.2
Version published
Maintainers
2
Created
Source

Pomsky WASM module for node

WASM module of Pomsky.

Usage

import { compile } from '@pomsky-lang/compiler-node'

const { output, diagnostics } = compile(`^ C* '.' C* $`, 'js')

This should just work in Node.js. To use Pomsky in the browser, use unplugin if you're using a bundler, or compiler-web if you want to compile Pomsky expressions on the client.

Don't forget to check if output === null, which means that compilation failed, and you have to look at the diagnostics. Even when the expression compiled successfully, diagnostics may contain useful warnings.

License

Dual-licensed under the MIT license or the Apache 2.0 license.

FAQs

Package last updated on 16 Nov 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