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

manifest.js

v0.0.11

Published

This is a CLI toolchain for building browser extensions. It includes commands for building bundles, managing versions, and translating content. The toolchain is designed to be modular and extendable, making it easy to add new functionality.

Downloads

10

Readme

manifest.js

This is a CLI toolchain for building browser extensions. It includes commands for building bundles, managing versions, and translating content. The toolchain is designed to be modular and extendable, making it easy to add new functionality.

Installation

npm install manifest.js -g

Usage

This CLI tool provides several commands to help you manage your browser extension project. Below is a detailed explanation of each command.

1. Build Command

The build command compiles your extension’s code into a bundle that can be loaded into the browser.

Syntax:

manifest build [options]

Options:

  • --watch: Run the build process in watch mode. This option automatically rebuilds the bundle whenever a source file changes.

Example:

manifest build --watch

This command reads the manifest.json file from the current working directory, initializes the Builder class with it, and triggers the build process.

2. Version Command

The version command increments the version number in the manifest.json file. You can specify the type of version bump: patch, minor, or major.

Syntax:

manifest version <type>

Parameters:

  • <type>: The type of version increment. Valid values are patch, minor, or major.

Example:

manifest version patch

This command will increment the patch version (e.g., from 1.0.0 to 1.0.1) in the manifest.json file.

3. Translate Command

The translate command integrates the translation module into your project. It includes two subcommands: init and sync.

Usage:

manifest translate <subcommand>

Subcommands:

  • init: Initializes the translation configuration by generating a translate.config.json file.
  • sync: Syncs the translations based on the translate.config.json file.

Example:

manifest translate init

This command creates a translate.config.json file if it doesn’t already exist.

manifest translate sync

This command syncs the translations using the configuration file.

4. Format Command

Usage:

manifest format

Extending the CLI

This CLI is built using the commander library, making it easy to add new commands or extend existing ones. To add a new command:

  1. Create a new module in the src/ directory.
  2. Import and register your command in the main command file.

Error Handling

The CLI provides basic error handling. If an error occurs during execution, it will be thrown, and a message will be displayed in the console.

License

This project is licensed under the MIT License.

See More Example