New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gridir

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

gridir

Make directory structure based on literal object.

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Gridir

Purpose

Make with a json file, a directory structure.

Installation

[sudo] npm install -g gridir

or to use API

[sudo] npm install gridir

Usage

Input

gridir -i [filename] or --input [filename] // read a file with your structure.

Verbose

gridir -i [filename] -v or --verbose  // enable the verbose mode.

Key

gridir -i [filename] -k [value] or --key [value] // select the key of first level of the structure.

Tricks

Put the structure on the package.json file, like that:

{
  "name": "gridir",
  "version": "0.0.1",
  "description": "Make directory structure based on literal object.",
  "main": "lib/index.js",
  "bin": "bin/index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [
    "mkdir",
    "tree",
    "directory-structure"
  ],
  "structure": {
    "bin": {},
    "doc": {},
    "lib": {},
    "test": {
      "case": {}    
    }
  },
  "author": "Kaique da Silva <kaique.developer@gmail.com>",
  "license": "BSD",
  "dependencies": {
    "mkdirp": "~0.3.5",
    "traverse": "~0.6.6"
  },
  "devDependencies": {
    "should": "~2.1.0"
  }
}

And then, run the command:

gridir -i package.json -v -k "structure"

Now if everything is fine, your structure was created.

Contribution

Feel free to help improve the project.

Keywords

mkdir

FAQs

Package last updated on 22 Nov 2013

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