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

directory-layout

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directory-layout

Verifies directory layout for existence of files and folders in specified positions

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Directory Layout Verifier

Project builds can be complex, and the size and structure of the final build directory may be equally complex. While unit testing helps to ascertain if code is intact, "Directory Layout Verifier" tests that the build has resulted in correct creation of files / directories at respective positions, which otherwise takes unnecessary time to debug in case the build failed partially.

Creation of directory structure is also automated, thus you don't need to create it by yourself. Checkout our tests folder for further understanding.

We've used markdown syntax to store the directory structure, easy for you to verify visually (if possible).

Usage:

For directory layout generation:

var LayoutGenerator = require('../lib/generate.js');

LayoutGenerator.generate('test/fixtures/', {
	output: './test/output/layout.md',
	ignore: [
		'.DS_Store'
	]
});

For layout verification:

var LayoutVerifier = require('../lib/verify.js');

LayoutVerifier.verify('test/output/layout.md', {
	root: './test/fixtures'
});
Coming soon:
  • Grunt and Gulp tasks

FAQs

Package last updated on 18 Apr 2016

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