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

broccoli-flatiron

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

broccoli-flatiron

Broccoli plugin to create json objects from directory structures

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18K
decreased by-3.24%
Maintainers
1
Weekly downloads
 
Created
Source

Broccoli Flatiron

Usage

Create a payload file based upon directory structure.

var flatiron = require("broccoli-flatiron");

var options = {
    outputFile: 'path/to/output/file'
};

var tree = flatiron(targetDirectory, options);

Documentation

Available options

  • outputFile - path of the generated file
  • trimExtensions - trim file extensions object keys or not
  • prefix - use custom prefix, default: export default
  • suffix - use custom suffix, default: ;
  • persistentOutput: boolean flag passed to broccoli-plugin.
  • needCache: boolean flag passed to broccoli-plugin.

ZOMG!!! TESTS?!?!!?

Yeah, I know.

npm install
npm test

License

This project is distributed under the MIT license.

Keywords

FAQs

Package last updated on 25 Jul 2018

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