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 🙏

© 2025 – Pkg Stats / Ryan Hefner

gowork

v0.1.3

Published

CLI program(NPM Package) that uses templates to make the desired file easier.

Readme

Gowork

Gowork is CLI program that uses templates to make the desired file easier. If you set up templates for frequently created files, you can create files by inserting only the necessary values into the CLI.

How to use?

install

init

$ yarn install --dev gowork
$ gowork init

The init command has not yet been implemented and is not currently working. Just set up the templates directory using the gowork command, and then run it again.

create template

If you used the init command, you would have created a templates directory. The Component.jsx template will basically be contained.

function $0($1) {
  return /$2:return data/;
}

$0 means the name of the file. From $1 onwards, it corresponds to the property in order. The same number may be more than one. There is no number limit.

Basically, it takes the form of $N, but if you want to display the meaning of a particular property, you can use the form /$N:description/. It is convenient when using the CLI.

gowork using command

$ gowork <template> <targetDirectory> <fileName> <$1> ...

What matters is the order. Template name excluding suffix, counterpart address-based directory to create new files, file name, Property1, Property2... For example, it is as follows.

e.g) $ gowork Component src/components Button title color

This is almost everything!

gowork using CLI

If you follow the order well, the CLI will take good care of you even if you skip a few of the elements behind you. If you didn't skip the values that would go in the middle, there's nothing to worry about.

$ gowork Template1 src/components Button first_param
$ Please choose which template to use
> Template 1
  Template 2
$ gowork
$ Please input for second_parameter : _

configuration

  1. defaultTemplate: <templateName>

    Specifies the template to use by default. When using the -d flag together, the default template and the default target directory are used.

    $ gowork -d Button <param1> ...
  2. defaultTargetDirectory: <relativeDirectoryPath>

    Specifies the target directory to use by default. When using the -d flag together, the default template and the default target directory are used.

    $ gowork -d Button <param1> ...
  3. templates: {[templateName]: [targetDirectory]}

    It's in the form of json format. Use the template name as the key, and specify the target directory for the template as the value.

    If a command is used without designating a target directory, it is used if there is a predetermined target directory.

    $ gowork Button
    ? Please input which file name to create : _

Update Plan

Currently, the basic suffix of the file to be generated may be specified through the configuration file's suffix option. Or you have to enter it yourself. It plans to change it to be created based on the suffix of the template file.

Contribute

It is managed in the repository below.

https://github.com/eunhyulkim/gowork

I want to provide various basic templates to users. I want to create templates not only for react components, but also for unittest or many frequently used patterns.

If you have any other problems, please email [email protected].