Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

overview-tools

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

overview-tools

tools for intuitive, clear project structure documentation

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

overview-tools

High level overviews are awesome; they make projects friendly in an instant. Explaining and displaying your project your project makes it easy for users & contributors to understand your project.

overview-tools is a simple npm-available module written in ES6 that makes it downright, super-darn, i-dare-say, quite easy to build a friendly overview for your project.


Add an OVERVIEW file to your project — alongside your README, CONTRIBUTING, LICENSE, etc

overview-tools/

    this is an example comment
    it's indented 4 spaces under it's parent

    comment away!

overview-tools/bin/
overview-tools/bin/overview-tools
overview-tools/src/
overview-tools/src/converters/
overview-tools/src/converters/json-to-html.js
...cut for brevity...

this file is readable, maintainable, and straightforward as plain-text, but it gets better:

add one line to your package.json

...
"scripts": {
    "overview": "./node_modules/.bin/overview-tools ./OVERVIEW --to tree"
},
...

now new users can npm run overview

tree output

use

there's a cli and js modules so you can use/extend it to your taste.

cli

building a boilerplate for your project (from a directory)

overview-tools ./project-path/

fancy outputs (from a file)

overview-tools ./project-path/OVERVIEW --to tree            # a clean utf8 tree
                                            tree.whitespace # just plain ol indents
                                            tree.basic      # instead of utf8 fanciness, just use ascii
                                            html            # html with a bunch of classes and ids
                                            overview        # the overview format
                                            markdown        # mmmmmm, mmmmarkdown
                                            json            # used internally, maybe kinda useful?

modules

for functional fans

import overviewFunctions as oFun from 'overview-tools';

// going to json
oFun.dirTreeToJSON(pathToDirectory)
oFun.fileToJSON(pathToOverviewFile)
oFun.overviewToJSON(overviewSourceText)

// different output formats
oFun.JSONToHTML(jsonDirectoryTree)
oFun.JSONToOverview(jsonDirectoryTree)
oFun.JSONToMarkdown(jsonDirectoryTree)
oFun.JSONToTree(jsonDirectoryTree)

and for the OOP crowd

import {Overview} from 'overview-tools';

let myProj = new Overview(pathToOverviewFile);

myProj.toOverview()
myProj.toMarkdown()
myProj.toHTML()
myProj.toTree()
myProj.toJSON()

Keywords

FAQs

Package last updated on 23 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc