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

bebar

v0.63.0

Published

![Coverage Badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/oYo-fr/d5057d855994a2ab855fe47788858e52/raw/typescript-template__heads_main.json) [![Node.js CI](https://github.com/oYo-fr/typescript-template/actions/workflows/node.

Readme

Bebar

Coverage Badge Node.js CI pages-build-deployment

API documentation

What is it?

Bebar combines multiple powerfull tools so you can grab data somwhere, and merge it with a template to produce documents.

In a .bebar file, you indicate a few things:

  • Where your data is (a path, a webserver). it can be json, yaml, csv, xml, ...
  • A template file in a mustache format
  • Where to put the result for the merge between you data and your template

And with this you will be able to generate a new readable file thw way you want.

Additionnaly, you can also indicate:

  • Where to find partial mustache templates (so you can split and reuse your template parts)
  • Where to find helpers which are javascript functions to help you transform your data (to display human-readable dates, currency amounts, various conversions, ...)
  • Prettify options so your final output looks beter!

How to use Bebar

Install

npm install -g bebar

Run

bebar

Command line arguments

  • -f, --filename [optional] The filename of you bebar file(s). The path can include a wildcard. If ommited, will default to *.bebar.
  • -v, --verbosity [optional] Indicates the verbosity level to use. If ommited, will default to INFO. Possible values are INFO, WARN, ERROR and NONE.

A basic example

The data (schools.json)

[
  {
    "id": 1,
    "name": "Harvard University"
  },
  {
    "id": 2,
    "name": "Massachusetts Institute of Technology"
  },
  {
    "id": 3,
    "name": "Stanford University"
  },
]

The template (list_of_schools.mustache)

# List of schools
{{#each schools}}
{{school.id}}. {{school.name}}

{{/each}}

The bebar file (schools.bebar)

data:
  -
    file: ./schools.json
templates:
  -
    file: list_of_schools.mustache
    output: schools.md

The result (schools.md)

# List of schools
1. Harvard University
2. Massachusetts Institute of Technology
3. Stanford University

Installation

npm install bebar -g

Usage

Command

Options

How to create a bebar file

Your bebar file should is in yaml format. It is used to tell bebar where to find your data, your templates, where to generate files...

Loading data

You can get your data from anywhere with bebar (a csv, xml, json, yaml, ...).

Full explanations & examples here

Setup your template(s)

Your data will be 'merged' with a mustache template to produce an output result.

Full explanations & examples here

Setup helper functions

You can load javascript functions to help you format your data.

Full explanations & examples here

Setup partial functions

If your template file is too big, or you want to be able to resuse parts of templates, you can split your files using partials and call them from your template.

Full explanations & examples here

Credits

Dependencies

Dev dependencies