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

fronit

v1.0.1

Published

a command line tool to help quickly and efficiently generate frontend components from popular libraries/frameworks

Downloads

5

Readme

fronit 🏎️

Build Status MIT license

a command line tool to help quickly and efficiently generate frontend components from popular libraries/frameworks

    _____                 _ __ 
   / ___/________  ____ (🏎️) /_
  / /__/ ___/ __ \/ __ \/ / __/
 / ___/ /  / /_/ / / / / / /_  
/_/  /_/   \____/_/ /_/_/\__/  
                          

What is "fronit" and why use it?

Tired of writing the same thing over and over again with every new component file? Already know what life cycle methods or functions you need? Want to just go straight to the actual coding? fronit's got you!

With fronit:

  • create component file with one line on command line
  • save time
  • choose what gets created with the file
    • need componentDidMount? add --cdm or --componentDidMount to your command
    • going to be using TypeScript? put .ts or .tsx with your command

No more:

  • creating new empty file
  • then writing the same "import React from 'react'..."
  • wasted time spent manually writing it all out

I know there are a few boilerplate/template generators out there already. But I hope you use fronit because it has many options when creating components. While it currently only generates React components right now, Vue and Angular will be supported soon!

Let's see how to use fronit!

How to use "fronit"

First, let's install fronit!

npm install -g fronit

Next, make sure you are in the directory you want the component file to be created!

# example: you want fronit to create files to your project's component folder
cd project/src/client/component

To use it, the command is fronit, followed by the library/framework you want to use, then the name of your component, and finally any options you want this component to have.

Here is an example:

fronit React Hello --class --state --componentDidMount .jsx
# or shorthand
fronit R Hello -c -s --cdm .jsx

This will create a file called Hello.jsx, which will be a class component with this.state and componentDidMount already written inside it.

There are a lot more options you can add! To see more options, see the next section for the library/framework you are going to use!

Options

For more detailed options for each library/framework:

Contribute

Please contribute! While I may have started on React, there are still plenty more to do! Vue and Angular also need attention!

Check the doc/guide for React, Vue or Angular for a check list of features I still need to add!