GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - structure-codes/utils: Utils used across the projects

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
jest.config.ts
jest.config.ts
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
rollup.config.js
rollup.config.js
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

This repo contains the tree parsing functions which are used in multiple repos throughout the project.

treeStringToJson

This parses a tree output into JSON for further use. Sample JSON format is below. Node names are stored in the keys and children are stored as an object in the value.

[
  {
    "name": "AboutView",
    "children": [],
  },
  {
    "name": "App",
    "children": [
      {
        "name": "Header",
        "children": [
          {
            "name": "index.tsx",
            "children": [],
          }
        ]
      },
      {
        "name": "index.tsx",
        "children": [],
      },
      {
        "name": "style.ts",
        "children": [],
      }
    ]
  }
]

treeJsonToString

This is used to convert the JSON back to a formatted string for logging or storing in a file.

├── AboutView
└── App
  ├── Header
  │  └── index.tsx
  ├── index.tsx
  └── style.ts

About

Utils used across the projects

Resources

Readme
MIT license
Activity
Custom properties

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.