Skip to content

gobblejs/gobble-spelunk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Flatten folders with gobble and spelunk

Resources

Stars

Watchers

Forks

Packages

No packages published