Socket
Socket
Sign inDemoInstall

@fluent/syntax

Package Overview
Dependencies
0
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @fluent/syntax

AST and parser for Fluent


Version published
Weekly downloads
100K
increased by10.68%
Maintainers
4
Created
Weekly downloads
 

Readme

Source

@fluent/syntax

@fluent/syntax is a tooling library for parsing, serializing, and working with the Fluent syntax. It's part of Project Fluent.

Installation

@fluent/syntax can be used both on the client-side and the server-side. You can install it from the npm registry or use it as a standalone script (as the FluentSyntax global).

npm install @fluent/syntax

How to use

import { parse, Resource } from "@fluent/syntax";

const res = parse(`
-brand-name = Foo 3000
welcome = Welcome, {$name}, to {-brand-name}!
`);

assert(res instanceof Resource);

The API reference is available at https://projectfluent.org/fluent.js/syntax.

Keywords

FAQs

Last updated on 13 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