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

grunt-doxication

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-doxication

Dox grunt plugin that does write file array wrapped dox objects to JSON or YAML

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

grunt-doxication

Simple dox grunt plugin to generate JSON or YAML from input files.

This plugin was inspired by grunt-dox but is trimmed down again to the basics.

Getting Started

This plugin requires Grunt ~0.4.x

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-doxication --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-doxication');

Documentation

Inside of your grunt file, add:

doxication: {
  options: {
    // Can be yaml or json
    format: 'yaml',
    // If ommited this will be used as default.
    fileName: 'doxicated',
    // The yaml default options where inline will be the indention level where YAML will be inlined and spaces is
    // the indentation space count.
    yaml: {
      inline: 99,
      spaces: 2
    }
  },
  files: {
    src: ['js/lib/**/*.js'],
    // Dest can be a folder or a file. If a folder is used then the fileName from the options is used.
    // If a path is specified that does not exist and has no extension it's also assumed to be a directory
    dest: 'dox'
  }
},

Keywords

FAQs

Package last updated on 31 Aug 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