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

@diaryx/fig-properties

v7.0.0

Published

Java .properties for @diaryx/fig: fig's own parser, printer and editing rules for the language, written in Rust and compiled to a WebAssembly module of its own. Pass it to registerLanguage.

Readme

Java .properties for fig

Java .properties for fig: fig's own parser, printer and editing rules for the language, written in Rust, with its bindings for C, Rust and JavaScript. fig carries no language of its own; this one links beside it, and you register it before reaching for a format of it.

It registers properties. Each dialect is a format, found by name.

Rust

[dependencies]
fig = "6"
fig-properties = "6"
let doc = fig::Document::parse(b"a = 1\n", fig_properties::format()?)?;

format() registers the language the first time it is asked for. With the crate's default serde feature it reads and writes typed values as serde_json does, with fig_properties::from_str and fig_properties::to_string, and their slice, reader, vec and writer twins.

The language is pure Rust, written on fig's kit alone, so the crate needs no other toolchain and no native library, on any target.

JavaScript

npm install @diaryx/fig @diaryx/fig-properties
import { parse, registerLanguage } from "@diaryx/fig";
import properties from "@diaryx/fig-properties";

const format = registerLanguage(properties);
parse("a = 1\n", format);

@diaryx/fig-properties is the language compiled to a WebAssembly module of its own, and pins @diaryx/fig at its own version.

C

Build the C library from fig's repository root, where its Rust is wrapped as a C library by fig-lang-export:

cargo rustc -p fig-lang-export --release --features properties --crate-type staticlib

Copy target/release/libfig_lang_export.a to libfig_properties.a, add this folder's include/ to the include path, link it beside fig's libfig.a, and register it:

#include <string.h>
#include <fig/properties.h>

const char *src = "a = 1\n";
int format;
FigError err = { .size = sizeof err };
if (fig_properties_register(&format, &err) != FIG_STATUS_OK) { /* err says why */ }
FigDocument *doc = NULL;
fig_parse((const uint8_t *)src, strlen(src), format, &doc);

This folder

This folder is the language's own package: its crate in Cargo.toml and rust/, its C header in include/, its npm package in package.json and js/. It depends on fig's kit and on nothing else of fig's. fig's languages/ says how a language package is put together.

License

MIT OR Apache-2.0.