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

tshex-cli

v1.0.8

Published

Typescript Hexagonal Architecture CLI

Downloads

22

Readme

Hexagonal Architecture CLI

This CLI will help you to generate a hexagonal architecture structure.

Why?

Hexagonal architecture is a software design pattern that separates the internal domain of the application from the external dependencies.. This separation is achieved by dividing the application into layers. Each layer has a specific responsibility and interacts with the other layers in a specific way.

Because what we are trying to achieve is a separation between the domain code and the installed dependencies, a Hexagonal Architecture Framework is a step in the opposite direction, as it couples the domain code with the framework. This is why we need a tool to help us to create the structure with our own codebase.

Usage example

https://github.com/virtualitems/typescript-codebase/tree/hexagonal-example

Note!!!

This tool and its templates are in constant development, so be aware that some changes may occur and be careful when updating the tool.

If you have any suggestions or improvements, please let me know.

https://github.com/virtualitems/typescript-codebase/issues

Installation

npm install -g tshex-cli

Usage

Remember to replace placeholders <...> with the actual data.

Getting started

tshex --lib <library-name> --ctx <context-name>

Help

tshex -h

tshex --help

Create a new library

tshex --lib <name>

Create a new context

tshex --ctx <name>

Create a new class

tshex --cls <name>

Create a new react functional component

tshex --rfc <name>

Set the directory to create the new items

tshex --lib <lib-name> --ctx <ctx-name> --dir <path>