GithubHelp home page GithubHelp logo

guatedude2 / node-readfiles Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 4.0 219 KB

A lightweight node.js module to recursively read files in a directory using ES6 Promises.

License: MIT License

JavaScript 8.45% TypeScript 91.55%

node-readfiles's People

Contributors

dependabot[bot] avatar guatedude2 avatar mikeralphson avatar thibaudlopez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-readfiles's Issues

CodeQL: Incomplete string escaping or encoding @ lib/readfiles.js:13

Hi @guatedude2, following #7 and #9, CodeQL reported another finding (see screenshot below):

  • Title: Incomplete string escaping or encoding.
  • Location: lib/readfiles.js:13
  • Description: Sanitizing untrusted input is a common technique for preventing injection attacks such as SQL injection or cross-site scripting. Usually, this is done by escaping meta-characters such as quotes in a domain-specific way so that they are treated as normal characters.
  • Tool: CodeQL
  • Rule ID: js/incomplete-sanitization

You probably see the same on your CodeQL dashboard.

Is this a true positive or false positive?

Thanks


image

CodeQL: Incomplete string escaping or encoding @ lib/readfiles.js:13

Hi @guatedude2, following #7 and #8, CodeQL reported another finding (see screenshot below):

  • Title: Incomplete string escaping or encoding.
  • Location: lib/readfiles.js:13
  • Description: Sanitizing untrusted input is a common technique for preventing injection attacks such as SQL injection or cross-site scripting. Usually, this is done by escaping meta-characters such as quotes in a domain-specific way so that they are treated as normal characters.
  • Tool: CodeQL
  • Rule ID: js/incomplete-sanitization

You probably see the same on your CodeQL dashboard.

Is this a true positive or false positive?

Thanks


image

define is not defined

.pnpm/[email protected]/node_modules/node-readfiles/lib/readfiles.js:15
define("src/build-filter", ["require", "exports"], function (require, exports) {
^

ReferenceError: define is not defined
    at Object.<anonymous> (/home/berliangur/ten25-second/ten25-third/node_modules/.pnpm/[email protected]/node_modules/node-readfiles/lib/readfiles.js:15:1)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12)
    at Module.require (node:internal/modules/cjs/loader:1057:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/home/berliangur/ten25-second/ten25-third/first.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)

Incorrect default value for hidden

document

hidden: a boolean value whether to exclude hidden files prefixed with a . (defaults to true)

68 lines of code

          // skip file if it's a hidden file and the hidden option is not set
          if (options.hidden !== true && /^\./.test(filename)) {
            return next();
          }

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.