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

create-fhf-linkedlist-app

v1.1.3

Published

CLI to create a FHF linked list app with either Vite or Next.js

Downloads

2

Readme

create-fhf-linkedlist-app

Overview

create-fhf-linkedlist-app is a CLI tool to quickly set up a project for creating a linked list application using either Vite or Next.js. This tool streamlines the process of cloning the necessary repository and installing dependencies, allowing you to focus on development.

Features

  • Clone the fhf-linkedlist repository with a specific branch based on your chosen framework and template.
  • Automatically install dependencies for the cloned project.
  • Supports both JavaScript and TypeScript setups.

Prerequisites

Make sure you have the following installed:

Installation

You can install the CLI globally using npm:

npm install -g create-fhf-linkedlist-app

You can run it by typing in the terminal:

create-fhf-linkedlist-app

Alternatively, you can use npx to run it without installing globally:

npx create-fhf-linkedlist-app

Usage

You will be prompted to choose a framework and, if applicable, a template:

  1. Choose a framework for your app:

    • Next.js
    • Vite
  2. If you choose Vite, select a template:

    • React JS
    • React TS
    • Vanilla JS
    • Vanilla TS

You can specify a custom path for the project directory by providing it as an argument:

npx create-fhf-linkedlist-app my-custom-path

The CLI will then clone the appropriate branch of the fhf-linkedlist repository and install the dependencies.

Example

Here's an example of using the CLI:

npx create-fhf-linkedlist-app
  1. Choose Vite as your framework.
  2. Choose React TS as your template.

The CLI will clone the vite-react-ts branch from the fhf-linkedlist repository and set up your project.

Project Structure

After running the CLI, your project structure will look like this (example for vite-vanilla-ts):

your-project-name/
├── public/
│   ├── wasm/
│   │   ├── main.wasm
│   │   └── vite.svg
├── src/
│   ├── fhf-linkedlist/
│   │   └── index.ts
│   ├── fhf-linkedlist.png
│   ├── main.ts
│   ├── style.css
│   ├── typescript.svg
│   └── vite-env.d.ts
├── .gitignore
├── index.html
├── package-lock.json
├── package.json
├── tsconfig.json
└── vite.config.js

Using fhf-linkedlist in Your Project

The fhf-linkedlist repository is designed to be a foundational component for linked list implementations. To use it in your project, follow these steps:

  1. Import the Linked List Module:

    In your src directory, import the linked list module into your component or application file where you intend to use it.

    // Example in a TypeScript file
    import LinkedList from "./fhf-linkedlist";
  2. Instantiate and Use the Linked List:

    Create an instance of the linked list and utilize its methods as needed.

    const myList = new LinkedList();
    await myList.append(1);
    await myList.append(2);
    await myList.append(3);
    
    console.log(await myList.toArray()); // Outputs: [1, 2, 3]
  3. Documentation and Examples:

    For more detailed usage and examples, refer to the fhf-linkedlist documentation.

Contributing

If you would like to contribute to this project, please feel free to submit a pull request or open an issue on GitHub.

License

This project is licensed under the ISC License.


Happy coding!