Socket
Socket
Sign inDemoInstall

broccoli-flatiron

Package Overview
Dependencies
23
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    broccoli-flatiron

Broccoli plugin to create json objects from directory structures


Version published
Weekly downloads
23K
decreased by-10.85%
Maintainers
1
Install size
1.17 MB
Created
Weekly downloads
 

Readme

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

Last updated on 25 Jul 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc