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 🙏

© 2024 – Pkg Stats / Ryan Hefner

xgovw-lint-js

v0.2.4

Published

Node.js bindings for xgovw, the Algorand Requests for Comments validator

Downloads

3

Readme

xgovw

An engine which ensures xGov meet certain requirements.

Getting Started

To install xgovw and validate the xGov repository:

git clone [email protected]:algorandfoundation/xgovw.git
cargo install --path=xgovw xgovw
xgovw /path/to/xGov
USAGE:
    xgovw [OPTIONS] [SOURCES]...

ARGS:
    <SOURCES>...    Files and/or directories to check

OPTIONS:
        --format <FORMAT>     Output format [default: text] [possible values: text, json]
    -h, --help                Print help information
        --lints <LINTS>       Additional lints to enable
        --list-lints          List all available lints
        --no-default-lints    Do not enable the default lints

Demo

Example xgov

---
title: The proposal title is a few words, not a complete sentence
author: Stéphane Barroso(@sudoweezy)
company_name: Name of the company
category: dApps
focus_area: Banking
open_source: Yes
amount_requested: 1000
status: Final
---

# xGov Submission

## Team
Information about the team members and their qualifications, including relevant experience and skills.

## Abstract
A brief overview of the proposal and its main objectives.

## Experience with Algorand
Details about the team's experience with the Algorand protocol and any previous projects built on it.

## Roadmap
A detailed plan for the development and implementation of the proposal, including timelines and milestones.

## Benefits for the community
A description of the potential benefits that the proposal could bring to the Algorand community and its users.

## Additional information
Any other relevant details or documentation that the team would like to include in the proposal.

Output

error[markdown-order-section]: section `Team` must come after `Abstract`
  --> /tmp/xgov-1.md
   |
12 | ## Team

Lints

| id | Description | |-------------------------------------|-----------------------------------------------------------------------------------------------| | preamble-file-name | The file name reflects the xgov number. | | preamble-req | All required preamble headers are present. | | preamble-order | The preamble headers are in the correct order. | | preamble-no-dup | There are no duplicate headers. | | preamble-trim | There is no extra whitespace around preamble fields. | | preamble-id | The id header is a positive integer | | preamble-len-title | The title header isn't too long. | | preamble-author | The author header is correctly formatted, and there is at least one GitHub user listed. | | preamble-list-author | The author header is a correctly formatted comma-separated list. | | preamble-len-company_name | The company_name header isn't too long. | | preamble-len-amount_requested | The amount_requested header is a at least 5 digits. | | preamble-amount_requested | The amount_requested header is a positive integer | | preamble-enum-category | The category header is a recognized value. | | preamble-enum-focus_area | The focus_area header is a recognized value. | | preamble-enum-open_source | The open_source header is a recognized value. | | preamble-enum-status | The status header is a recognized value. | | markdown-req-section | Required sections are present in the body of the proposal. | | markdown-order-section | There are no extra sections and the sections are in the correct order. | | markdown-re-xgov-not-xgov | Other xgovs are referenced using xGov-X, not xgov-X. | | markdown-re-xgov-dash | Other xgovs are referenced using xGov-X, not XGOVX or xGov X. | | markdown-link-first | First mention of an xgov must be a link. | | markdown-rel-links | All URLs in the page are relative. (or use the html Topic) format |

JavaScript / WebAssembly

xgovw-lint-js packages xgovw as an npm package, for use in JavaScript / TypeScript.

You can find the package on npm.

Building & Publishing

cargo install --path=xgovw xgovw

cd xgovw-lint-js
wasm-pack build -t nodejs
wasm-pack publish -t nodejs