Socket
Socket
Sign inDemoInstall

verb

Package Overview
Dependencies
328
Maintainers
2
Versions
75
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    verb

Verb makes it dead simple to generate markdown documentation, using simple templates, with zero configuration required. A project without documentation is like a project that doesn't exist.


Version published
Weekly downloads
374
increased by0.27%
Maintainers
2
Install size
14.4 MB
Created
Weekly downloads
 

Readme

Source

verb NPM version

Verb makes it dead simple to generate markdown documentation, using simple templates, with zero configuration required. A project without documentation is like a project that doesn't exist.

Install

Install globally with npm:

npm i -g verb

Run tests

npm test

Usage

var verb = require('verb');

// load data to pass to templates.
verb.data('package.json');
verb.data('docs/*.json');
verb.data({author: 'Jon Schlinkert'});

verb.helper('toc', function() {

});

verb.task('default', function() {
  verb.src('.verb.md')
    .pipe(verb.dest('./'));
});

API

Verb

Create an instance of Verb with the given options.

  • options {Object}
var verb = new Verb();

.task

Define a Verb task.

  • name {String}
  • fn {Function}
verb.task('docs', function() {
  // do stuff
});

.run

Run an array of tasks.

  • tasks {Array}
verb.run(['foo', 'bar']);

.src

Glob patterns or filepaths to source files.

  • glob {String|Array}
  • options {Object}
verb.task('site', function() {
  verb.src('src/*.hbs', {layout: 'default'})
    verb.dest('dist')
});

.dest

Specify a destination for processed files.

  • patterns {String|Array|Function}: Glob patterns, file paths, or renaming function.
  • opts {Object}: Options to be passed to dest plugins.
verb.task('sitemap', function() {
  verb.src('src/*.txt')
    verb.dest('dist', {ext: '.xml'})
});

.watch

Rerun the specified task when a file changes.

  • glob {String|Array}: Filepaths or glob patterns.
  • options {String}
  • fn {Function}: Task(s) to watch.
verb.task('watch', function() {
  verb.watch('docs/*.md', ['docs']);
});

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert
Copyright (c) 2014 Fractal contact@wearefractal.com Released under the MIT license


This file was generated by verb on November 10, 2014.

Keywords

FAQs

Last updated on 11 Nov 2014

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