🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

base-io

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-io - npm Package Compare versions

Comparing version

to
1.0.1

34

index.js

@@ -7,3 +7,3 @@ 'use strict';

util = require('util'),
emiter = require('events').EventEmitter;
emitter = require('events').EventEmitter;

@@ -15,2 +15,3 @@ /**

this.prepare = function(){};
this.path = process.cwd()+'/';
};

@@ -20,3 +21,3 @@

* Setting prepare function
*
*
* @returns {object} this object

@@ -37,5 +38,5 @@ */

* Setting root directory
*
*
* @param {string} path root
*
*
* @returns {object} this object

@@ -51,5 +52,5 @@ */

* Extend prototype
*
*
* @param {object} proto extend properties
*
*
* @returns {object} this object

@@ -68,5 +69,5 @@ */

* Prototype inheritance from folder
*
*
* @param {mixed} path path/s
*
*
* @returns {object} this object

@@ -76,3 +77,4 @@ */

if (Array.isArray(path)) {
return path.forEach(this.scan.bind(this));
path.forEach(this.scan.bind(this));
return this;
}

@@ -92,8 +94,8 @@

/**
* Extend event emiter
*
* Extend event emitter
*
* @returns {object} this object
*/
base.prototype.emiter = function(){
util.inherits(this.prepare,emiter);
base.prototype.emitter = function(){
util.inherits(this.prepare,emitter);

@@ -105,3 +107,3 @@ return this;

* Return finished class
*
*
* @returns {function} prepare

@@ -115,3 +117,3 @@ */

* Adding extension method properties
*
*
* @returns {object} this object

@@ -144,2 +146,2 @@ */

module.exports = base;
module.exports = base;
{
"name": "base-io",
"version": "1.0.0",
"version": "1.0.1",
"description": "Easy creation of a basis module.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -30,8 +30,8 @@ # base-io

Наследовать Event Emiter
Наследовать Event emitter
```javascript
base.emiter();
base.emitter();
```
Установка директории поиска папок, необходимо для base.scan(...);
Установка директории поиска папок, необходимо для base.scan(...); (из текущей директории не обязательно)
```javascript

@@ -154,6 +154,6 @@ base.root(__dirname);

```javascript
base.emiter();
base.emitter();
```
Setting search directory folders, you need to base.scan(...);
Setting search directory folders, you need to base.scan(...); (not necessarily in the current directory)
```javascript

@@ -245,2 +245,2 @@ base.root(__dirname);

app.js
```
```