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

schema-fuse

v0.0.12

Published

The Schema Fuse CLI is a command-line tool that allows you to automatically combine and manage your Prisma Schema files. Whether you want to break up large Schema files, have self-contained Prisma files for different modules, or simply manage your prism s

Downloads

3

Readme

Schama Fuse CLI

The schema-fuse CLI is a command-line tool that allows you to automatically combine and manage your prisma schema files. Whether you want to break up large schema files, have self-contained schema files for different modules, or simply manage your Schema schemas efficiently, this tool provides flexibility and automation.

Features

  • Combine multiple prisma schema files into a single file.
  • Watch for changes in schema files and trigger combining when changes stabilize.
  • Supports subdirectory scanning for schema files.
  • Customizable delay to control when schema combining occurs.

Installation

  1. Ensure you have Node.js and npm installed.

  2. Install the CLI globally:

    npm install -g schema-fuse

Usage

Combine Schema Files

Combine multiple schema files into a single schema file:

schema-fuse -i <input-directory> -o <output-directory>
  • -i, --input: Input directory where schema files are located.
  • -o, --output: Output directory where the combined schema file will be saved.

Run in Background

To watch for changes in prisma schema files and combine them when changes stabilize:

schema-fuse -b -i <input-directory> -o <output-directory>
  • -b, --background: Run in the background mode.
  • -d, --delay <milliseconds>: Customizable delay before combining (default is 5000 milliseconds).

Example

To combine schema files located in ./prisma and output the combined schema to ./output, run:

schema-fuse -i ./prisma -o ./output

To run in the background with a 10-second delay:

schema-fuse -b -d 10000 -i ./schema -o ./output

Contributing

Feel free to contribute to this project! You can submit issues, pull requests, or suggestions in the GitHub repository.

License

This CLI tool is licensed under the MIT License. See the LICENSE file for details.