Socket
Socket
Sign inDemoInstall

verb

Package Overview
Dependencies
342
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
Maintainers
2
Install size
14.7 MB
Created

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

Usage

Visit the documentation for a full overview of Verb's capabilities, as well as:

.verb.md

For basic docs, like a README, just drop a .verb.md in the root of your project. Then, to build the README just run verb in the command line.

verbfile.js

If you want to create more than a README, you can optionally add a verbfile.js.

var verb = require('verb');

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

verb

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

In addition to all of Verb's unique features, Verb can also run any gulp plugin.

API

In adition to the following, all methods from Template are expose on verb.

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']);
});

Run tests

npm test

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 11, 2014.

Keywords

FAQs

Last updated on 12 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