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

dir-generate

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dir-generate

a easy tool to make dir with markdown

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

dir-generate

a easy tool to make dir with markdown

NPM

###usage for require

####install npm install dir-generate

####usage var dg = require('dir-generate'); dg.runMarkdownFile('/Users/gkuchan/Documents/index.md', '/Users/gkuchan/Documents', function (err) { if(err) { console.log('Oh no!'); return; } console.log('Everything is ok.') });

####methods

  • runMarkdownFile(filePath, dirPath, callback)

###usage for command-line

####install npm install -g dir-generate

####help dir-generate -help

####usage Usage: dir-generate [options] Options: -h, --help output usage information -d, --dir [source_dir] set target dir path. defaults to ./ -f, --file [source_file] set config file path. defaults to ./index.md

###usage for dev

  • make jshint
  • make test
  • make cov
  • make test-all

###example file

index.md
--------------------------
* folder1
	* hello.html
	* 1-1
		* abc.txt
	* 1-2
* folder2
	* 233.md
* folder3
	* 3-1
		* 3-1-1
			* 3-1-1-1
				* hehe.js
--------------------------

dir-generate -d ./ -f ./index.md

###tip

  • the folder name cannot have a Filename Extension
  • the file name must have a Filename Extension

###TODO

  • use json to generate dir

###Lincense

MIT

Keywords

FAQs

Package last updated on 16 Oct 2014

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