Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tree-config-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tree-config-parser - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

.travis.yml

49

gulpfile.js

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

var cover = require('gulp-coverage');
var jsdoc = require('gulp-jsdoc');
var jsdoc = require('gulp-jsdoc3');
var subtree = require('gulp-subtree');

@@ -12,16 +12,6 @@ var del = require('del');

var opts = {
mocha: {
reporter: 'spec',
globals: [
'setImmediate',
'clearImmediate'
]
}
};
gulp.task('test', function(){
return gulp
.src(['test/*.js'])
.pipe(mocha(opts.mocha));
.src(['test/*.js'], {read: false})
.pipe(mocha());
});

@@ -36,5 +26,4 @@

function coverage(tests, output){
return gulp
.src(tests, {read: false})
gulp.task('coverage', function(){
return gulp.src(['test/*.js'], {read: false})
.pipe(cover.instrument({

@@ -44,10 +33,6 @@ pattern: ['index.js', 'lib/**.js'],

}))
.pipe(mocha(opts.mocha))
.pipe(cover.report({
outFile: output
}));
}
gulp.task('coverage', function(){
return coverage(['test/*.js'], 'test/coverage.html');
.pipe(mocha())
.pipe(cover.gather())
.pipe(cover.format())
.pipe(gulp.dest('reports'));
});

@@ -60,21 +45,9 @@

gulp.task('make-docs', function(){
return gulp.src(['index.js', 'lib/**/*.js', 'README.md'])
gulp.task('make-docs', function(cb){
return gulp.src(['index.js', 'lib/**/*.js', 'README.md'], {read: false})
.pipe(jsdoc('./docs'));
});
/*
gulp.task('publish-docs', function(){
return gulp
.src('docs')
.pipe(subtree({
remote: 'origin',
branch: 'master',
message: 'Updating docs'
}));
});
/**/
gulp.task('docs', ['clean-docs', 'make-docs']);
gulp.task('default', ['test', 'watch']);
{
"name": "tree-config-parser",
"description": "TreeConfig parser values stream",
"version": "0.1.0",
"version": "1.0.0",
"main": "./index.js",

@@ -18,29 +18,23 @@ "homepage": "https://github.com/abricos/tree-config-parser",

},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/abricos/tree-config-parser/blob/master/LICENSE"
}
],
"engines": {
"node": ">= 0.10.24"
},
"license": "MIT",
"keywords": [
"config",
"parser"
"parser",
"stream"
],
"devDependencies": {
"del": "^1.1.1",
"gulp": "^3.8.10",
"gulp-coverage": "^0.3.32",
"gulp-jsdoc": "^0.1.4",
"gulp-mocha": "^2.0.0",
"concat-stream": "^1.6.0",
"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-coverage": "^0.3.38",
"gulp-jsdoc3": "^1.0.1",
"gulp-mocha": "^4.0.1",
"gulp-subtree": "^0.1.0",
"should": "^4.6.0",
"tree-config": "^0.2.3",
"vinyl-paths": "^1.0.0"
"should": "^11.2.0",
"tree-config": "^1.0.0",
"vinyl-paths": "^2.1.0"
},
"dependencies": {
"through": "^2.3.6"
"through": "^2.3.8"
}
}
# tree-config-parser
[![Build Status](https://travis-ci.org/abricos/tree-config-parser.svg?branch=master)](https://travis-ci.org/abricos/tree-config-parser)  
TreeConfig parser values stream

@@ -4,0 +6,0 @@

@@ -5,4 +5,5 @@ 'use strict';

var should = require('should');
var concat = require('concat-stream')
var path = require('path');
var treeConfig = require('tree-config');
var config = require('tree-config');

@@ -16,7 +17,5 @@ var txtFile = path.join(__dirname, 'data', 'test.txt');

before(function(done){
treeConfig.configure({
ROOT_OPTIONS: {
tester: {
myValue: 'Hello world!'
}
config.setDefaults({
tester: {
myValue: 'Hello world!'
}

@@ -28,3 +27,3 @@ });

after(function(done){
treeConfig.clean();
config.clean();
done();

@@ -34,13 +33,15 @@ });

it('should be parse file', function(done){
var parserStream = new ParserStream(config);
var config = treeConfig.instance();
fs.createReadStream(txtFile)
.pipe(parserStream)
.pipe(concat(function(data){
console.log(data.toString());
var parserStream = new ParserStream(config);
var result = /Hello world!/.test(data.toString());
result.should.be.true();
var r = fs.createReadStream(txtFile);
r.pipe(parserStream);
done();
done();
}));
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc