fabricator
Advanced tools
Comparing version 0.2.0 to 0.2.1
12
index.js
@@ -10,3 +10,3 @@ 'use strict'; | ||
* | ||
* @param {Mixed} stack String, array or object that contains constructable entities | ||
* @param {Mixed} stack String, array or object that contains constructible entities | ||
* @param {Function} done Completion callback. | ||
@@ -25,7 +25,7 @@ * @return {Array} collection of constructors, if called synchronously. | ||
/** | ||
* Synchronous discover constructable entities. | ||
* Synchronous discover constructible entities. | ||
* | ||
* @param {String} type Typeof stack. | ||
* @param {Mixed} stack | ||
* @return {Array} filtered collection of constructable entities. | ||
* @return {Array} filtered collection of constructible entities. | ||
* @api private | ||
@@ -52,3 +52,3 @@ */ | ||
/** | ||
* Asynchronously discover constructable entities. | ||
* Asynchronously discover constructible entities. | ||
* | ||
@@ -108,5 +108,5 @@ * @param {String} type Typeof stack. | ||
// | ||
// Only allow JS files, init determines if it is a constructable instance. | ||
// Only allow JS files, init determines if it is a constructible instance. | ||
// | ||
if (!fs.statSync(file).isFile() || !js(file)) return false; | ||
if (!fs.statSync(file).isFile() || !js(file)) return; | ||
return init(file, path.basename(file, '.js')); | ||
@@ -113,0 +113,0 @@ }); |
{ | ||
"name": "fabricator", | ||
"version": "0.2.0", | ||
"description": "Discover collections of constructable instances from strings (filepaths), arrays or objects", | ||
"version": "0.2.1", | ||
"description": "Discover collections of constructible instances from strings (filepaths), arrays or objects", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -7,5 +7,5 @@ # Fabricator [![Build Status][status]](https://travis-ci.org/bigpipe/fabricator) [![NPM version][npmimgurl]](http://badge.fury.io/js/fabricator) [![Coverage Status][coverage]](http://coveralls.io/r/bigpipe/fabricator?branch=master) | ||
Discover collections of constructable instances from strings (filepaths), | ||
Discover collections of constructible instances from strings (filepaths), | ||
arrays or objects. Fabricator is a small helper module which does nothing | ||
else but detecting constructable JS entities. Strings are resolved as filepaths. | ||
else but detecting constructible JS entities. Strings are resolved as filepaths. | ||
@@ -30,3 +30,3 @@ The module exposes a factory function which can be provided with an optional | ||
var fabricator = require('fabricator') | ||
, path = './path/to/directory/with/constructables'; | ||
, path = './path/to/directory/with/constructibles'; | ||
, obj = { | ||
@@ -33,0 +33,0 @@ status: require('./npm-status-pagelet'), |
14003