1.0.1 • Published 10 years ago

inklude v1.0.1

Weekly downloads
2
License
BSD-3-Clause
Repository
github
Last release
10 years ago

Inklude

Build Status

Inklude is an module which provides straight-forward, powerfil functions for including Node.js Modules.

Getting started

Features

Inklude has some special features to offer:

  • include a directory
  • flag a directory as optional
  • aggregate multiple plain objects together
  • exclude a directory
  • filter files out
  • include multiple directorys at once
  • filter for specific directorys

Installation

The source is available for download from Github. Alternatively, you can install using NPM (Node Package Manager):

npm install inklude

Or you just add this line to your repository field in your package.json and your're pretty much done.

"dependencies": {
  "inklude": "1.0.0"
}

Quick usage

First you need to require the Package. After this you can just call include with two (2) parameters, like this

var options = {
  dirname: process.cwd() + "/yourdir",
  exclude: /^\.(git|svn)$/,
  filter:  /(.*)/
};

inklude(options, function (err, res) {
  if (err) return callback(err);
  if (!res) return callback(new Error("Something went totally wrong!!!"));

  console.log(res);
});

Documentation

Comming soon!

License

The Inklude Package is open-sourced software licensed under the BSD-3-Clause

1.0.1

10 years ago

1.0.0

10 years ago

1.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago