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

@xploration-tech/xtouch

v2.9.1

Published

The easiest way to create empty files and folder trees at a glance!

Downloads

12

Readme

xTouch

npm downloads type support npm versions issues

follow xTech star xTouch watch xTouch

The easiest way to create empty files and folder trees at a glance!

Installation

> yarn global add @xploration-tech/xtouch

Usage

xTouch is the easiest way to create new, empty files. It is also used to quickly create TypeScript projects and files from templates, based on our own preferences.

xTouch's syntax is

xtouch [option] file_name(s)

When used without any options, xTouch creates new files for any file names that are provided as arguments if files with such names do not already exist. xTouch can create any number of files simultaneously.

For example, the following command would create four new, empty files named tsconfig.json, tslint.json, index.ts, and package.json.

xtouch tsconfig.json tslint.json index.ts package.json

As of 2.5.0 you can now add content per file!

xtouch file1 -c Contents! file2 -c "Multiple words must be in quotations" file3 -c 'More contents!'

Addons

When used with options, xTouch creates new files based on the parameters given to it. xTouch cannot create more than one type of addon simultaneously. However, should the need arise, we will add it accordingly.

When creating project files, xTouch needs very few parameters to get you started. For example, the following command would create a Fusebox-powered module bundling file! The very same file that powers xTouch's bundles!

xtouch --addon fuse-box --type module.ts

You can also specify a name and path! In this example, xTouch will be replacing __NAME__ with 83a9999ac29bb5ed086930699e307649, simply a rather extreme example of a bundle name. xTouch will write the addon file into the temp/ directory. By default, xTouch will simply write the addon into the CWD (Current Working Directory).

xtouch -a fuse-box -t module.ts -n 83a9999ac29bb5ed086930699e307649 --path temp
Sparky.task('default', () => {
  ...
-  fuse.bundle('__NAME__').instructions('> xtouch.ts');
+  fuse.bundle('83a9999ac29bb5ed086930699e307649').instructions('> xtouch.ts');
});

Addons work by taking a file, renaming it, and putting it under a categoric folder. For example: addons/<addon>/<type>. Then we include a configuration file, and we're go for liftoff!

Interactive alpha Coming Soon*

When specifying the --interactive option, you'll be prompted with an interactive CLI for making your selections. This is only something we're playing around with, it may be buggy.

Note

We're designing xTouch with modularity in mind. This means rather than simply creating a new project entirely, you can use xTouch to add files in a plugin-like way. Another features we're working on is resetting files. This way anything can be removed, reset, or added in a modular way, without you having to scroll through git commits for a good reset entry.