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

cpsf_utilite

v1.7.11

Published

## Description

Downloads

30

Readme

cpsf_utilite

Description

cpsf_utilite (Create Project Structure File) is a Node.js utility that allows you to generate a project structure or an archive of the project structure and automatically updates the .gitignore file. This utility can be useful for quickly analyzing and understanding the structure of existing projects, creating an initial structure for new projects, or archiving the current project structure.

Installation

You can install cpsf_utilite globally using npm:

npm install -g cpsf_utilite

Usage

After installation, you have two main options to use this utility within your project directory.

Generate Project Structure To generate a project-structure.txt file with the project's structure:

gst structure

Create an Archive of the Project Structure To create an archive of the project's structure:

gst archive

Both options will also update the .gitignore file by adding the generated file (project-structure.txt or the archive file) to avoid tracking it in version control.

If no arguments are provided, the utility will prompt you to choose an operation in interactive mode:

gst

Examples

Here is an example of a project structure that can be generated by the utility:

src/
  index.js
    // Example code in index.js
    console.log("Hello, world!");
  components/
    App.js
      // Example code in App.js
      import React from 'react';
      const App = () => <div>Hello, App!</div>;
      export default App;
utils/
  helper.js
    // Example code in helper.js
    export function add(a, b) {
      return a + b;
    }
test/
  test.spec.js
    // Example code in test.spec.js
    import { add } from '../utils/helper';
    describe('add function', () => {
      it('should add two numbers', () => {
        expect(add(2, 3)).toBe(5);
      });
    });
.gitignore
package.json
project_copies/
  project-structure_D_YYYY-MM-DD_H_HH-MM-SS.txt
  archive_D_YYYY-MM-DD_H_HH-MM-SS.txt

For the archive option, the generated file will be similar but saved under a different filename format indicating it's an archive.

FAQ

Q: Can I use cpsf_utilite for non-Node.js projects? A: Yes, the utility is not dependent on the type of project and can be used to generate the structure of any project that has a file system.

Q: Can I exclude certain folders or files from the structure? A: Yes, you can modify the utility's code to add logic for ignoring specific folders or files.

Feedback

If you have any questions or suggestions, please contact me via GitHub Issues.

License

cpsf_utilite is distributed under the MIT license.