0.6.0 • Published 9 years ago

gobble-spelunk v0.6.0

Weekly downloads
23
License
MIT
Repository
github
Last release
9 years ago

gobble-spelunk

Flatten folders with gobble and spelunk.

Installation

First, you need to have gobble installed - see the gobble readme for details. Then,

npm i -D gobble-spelunk

Usage

gobblefile.js

var gobble = require( 'gobble' );
module.exports = gobble( 'data' ).transform( 'spelunk', {
  // output format can be `json`, `amd`, `cjs` or `es6`
  type: 'json',

  // the file to create
  dest: 'data.json',

  // JSON-specific options - for more info see
  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
  replacer: someFunction,
  space: '  '

  // remaining options are passed through to spelunk
  exclude: [ '**/README.md' ],
  keepExtensions: true
});

License

MIT. Copyright 2014 Rich Harris

0.6.0

9 years ago

0.5.0

9 years ago

0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago