Code Monkey home page Code Monkey logo

path-reader's People

Contributors

a0viedo avatar ackerapple avatar andrei-propertyguru avatar danb235 avatar drudge avatar fshost avatar lanfeust avatar miguelzf avatar miloss avatar nazomikan avatar pdehaan avatar rlanore avatar robatron avatar uipoet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

btbxbob hreimer

path-reader's Issues

Cannot use the module two times in a row

Hello

I am using your module in the following node js code (first version) and it works correctly in the first call, but the second one fails without any error. If I change the name of the variable that has the module path-reader (second version) then the module works correctly. I thing that there is something that has to be deleted in order to be able to use the module a second time but I don't know exactly what it is.

-- first version
` var pathReader = require('path-reader');
var result = await pathReader.promiseFiles(config.report.parameters.featuresFolder)
.catch(e=>console.error(e));

var pathReader = require('path-reader');
var result1  = await pathReader.promiseFiles(config.report.parameters.featuresFolder)
.catch(e=>console.error(e));`

-- second version
`
var pathReader = require('path-reader');
var result = await pathReader.promiseFiles(config.report.parameters.featuresFolder)
.catch(e=>console.error(e));

var pathReader = require('path-reader');
var result1  = await pathReader.promiseFiles(config.report.parameters.featuresFolder)
.catch(e=>console.error(e));

`

with visual studio code 1.28.2 and node 8.9.3

and the following launch configuration
{ "type": "node", "request": "launch", "name": "Generate Report", "cwd": "${workspaceRoot}", "protocol": "inspector", "runtimeArgs": [ "inspect" ], "program": "${workspaceFolder}/test/test.js" }
and the following package.json
`
{
"name": "multiple-cucumber-html-reporter",
"version": "1.3.0",
"description": "Generate beautifull cucumberjs reports for multiple instances (browsers / devices)",
"keywords": [
"cucumber",
"html",
"test report",
"multiple-cucumber-html-reporter",
"html report",
"json to html"
],
"main": "lib/generate-report.js",
"scripts": {
"test": "jasmine",
"unit.test.coverage": "JASMINE_CONFIG_PATH=test/unit/jasmine.json istanbul cover jasmine",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"dev": "nodemon server.js",
"test-cover": "NODE_ENV=test nyc --clean --reporter=lcov --reporter=json --reporter=text npm test "
},
"repository": {
"type": "git",
"url": "git+https://github.com/wswebcreation/multiple-cucumber-html-reporter.git"
},
"author": "wswebcreation",
"bugs": {
"url": "https://github.com/wswebcreation/multiple-cucumber-html-reporter/issues"
},
"homepage": "https://github.com/wswebcreation/multiple-cucumber-html-reporter#readme",
"dependencies": {
"adm-zip": "^0.4.7",
"async": "^2.6.1",
"bluebird": "^3.5.2",
"body-parser": "^1.18.2",
"bson": "^3.0.2",
"c21e": "^1.1.5",
"chalk": "2.4.1",
"clear-require": "^2.0.0",
"cucumber-messages": "^2.0.0",
"date-and-time": "^0.6.3",
"ejs": "^2.5.8",
"express": "^4.16.3",
"find": "^0.2.9",
"fs-extra": "^7.0.0",
"fs-promise": "^2.0.3",
"gherkin": "^5.1.0",
"helmet-csp": "^2.7.0",
"js-base64": "^2.4.9",
"json-future": "^2.1.3",
"jsonfile": "5.0.0",
"jszip": "^3.1.5",
"klaw": "^3.0.0",
"lodash": "^4.17.11",
"minimist": "^1.2.0",
"minipass": "^2.3.5",
"mkdir": "0.0.2",
"mkdirp": "^0.5.1",
"mongodb": "^3.0.5",
"opn": "^5.4.0",
"path-reader": "^1.1.0",
"proxyquire": "^2.1.0",
"recursive-readdir": "^2.2.2",
"require-and-forget": "^1.0.0",
"safe-buffer": "^5.1.2",
"tar": "^4.4.1",
"util": "^0.11.0",
"uuid": "^3.3.2",
"winston": "^3.1.0",
"yallist": "^3.0.2"
},
"devDependencies": {
"coveralls": "^3.0.2",
"istanbul": "0.4.5",
"jasmine": "^3.3.0",
"jasmine-console-reporter": "^3.1.0",
"jasmine-expect": "^3.8.4",
"nodemon": "^1.18.5",
"nyc": "^13.1.0",
"supertest": "^3.3.0"
},
"directories": {
"doc": "docs",
"lib": "lib",
"test": "test"
},
"license": "ISC"
}

`

Use fs.stats as a filter

Hi! Would it be possible to define if a file will be added to the array based on a fs.stats comparison?

I would like a list of file paths filtered by mtime for example. Is there a way to do so in a callback?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.