diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:10:59 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:41:44 +0800 |
| commit | fc87c009806dcc98867f6b58efe29b042aa01dee (patch) | |
| tree | 8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/fs-readdir-recursive | |
| parent | 3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff) | |
node: updatemain
Diffstat (limited to 'node_modules/fs-readdir-recursive')
| -rw-r--r-- | node_modules/fs-readdir-recursive/LICENSE | 22 | ||||
| -rw-r--r-- | node_modules/fs-readdir-recursive/README.md | 61 | ||||
| -rw-r--r-- | node_modules/fs-readdir-recursive/index.js | 29 | ||||
| -rw-r--r-- | node_modules/fs-readdir-recursive/package.json | 26 |
4 files changed, 0 insertions, 138 deletions
diff --git a/node_modules/fs-readdir-recursive/LICENSE b/node_modules/fs-readdir-recursive/LICENSE deleted file mode 100644 index a7ae8ee9..00000000 --- a/node_modules/fs-readdir-recursive/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ - -The MIT License (MIT) - -Copyright (c) 2014 Jonathan Ong me@jongleberry.com - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/fs-readdir-recursive/README.md b/node_modules/fs-readdir-recursive/README.md deleted file mode 100644 index 4c4f8d5d..00000000 --- a/node_modules/fs-readdir-recursive/README.md +++ /dev/null @@ -1,61 +0,0 @@ -# fs.readdirSyncRecursive - -[![NPM version][npm-image]][npm-url] -[![Build status][travis-image]][travis-url] -[![Test coverage][coveralls-image]][coveralls-url] -[![Dependency Status][david-image]][david-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] -[![Gittip][gittip-image]][gittip-url] - -Read a directory recursively. - -## Install - -```bash -npm install fs-readdir-recursive -``` - -## Example - -```js -var read = require('fs-readdir-recursive') -read(__dirname) === [ - 'test/test.js', - 'index.js', - 'LICENSE', - 'package.json', - 'README.md' -] -``` - -## API - -### read(root [, filter]) - -`root` is the directory you wish to scan. `filter` is an optional filter for the files with three params(name, index, dir). By default, filter is: - -```js -function (name) { - return name[0] !== '.' -} -``` - -Which basically just ignores `.` files. - -[npm-image]: https://img.shields.io/npm/v/fs-readdir-recursive.svg?style=flat-square -[npm-url]: https://npmjs.org/package/fs-readdir-recursive -[github-tag]: http://img.shields.io/github/tag/fs-utils/fs-readdir-recursive.svg?style=flat-square -[github-url]: https://github.com/fs-utils/fs-readdir-recursive/tags -[travis-image]: https://img.shields.io/travis/fs-utils/fs-readdir-recursive.svg?style=flat-square -[travis-url]: https://travis-ci.org/fs-utils/fs-readdir-recursive -[coveralls-image]: https://img.shields.io/coveralls/fs-utils/fs-readdir-recursive.svg?style=flat-square -[coveralls-url]: https://coveralls.io/r/fs-utils/fs-readdir-recursive -[david-image]: http://img.shields.io/david/fs-utils/fs-readdir-recursive.svg?style=flat-square -[david-url]: https://david-dm.org/fs-utils/fs-readdir-recursive -[license-image]: http://img.shields.io/npm/l/fs-readdir-recursive.svg?style=flat-square -[license-url]: LICENSE -[downloads-image]: http://img.shields.io/npm/dm/fs-readdir-recursive.svg?style=flat-square -[downloads-url]: https://npmjs.org/package/fs-readdir-recursive -[gittip-image]: https://img.shields.io/gratipay/jonathanong.svg?style=flat-square -[gittip-url]: https://gratipay.com/jonathanong/ diff --git a/node_modules/fs-readdir-recursive/index.js b/node_modules/fs-readdir-recursive/index.js deleted file mode 100644 index 59d0af25..00000000 --- a/node_modules/fs-readdir-recursive/index.js +++ /dev/null @@ -1,29 +0,0 @@ -var fs = require('fs') -var path = require('path') - -module.exports = read - -function read(root, filter, files, prefix) { - prefix = prefix || '' - files = files || [] - filter = filter || noDotFiles - - var dir = path.join(root, prefix) - if (!fs.existsSync(dir)) return files - if (fs.statSync(dir).isDirectory()) - fs.readdirSync(dir) - .filter(function (name, index) { - return filter(name, index, dir) - }) - .forEach(function (name) { - read(root, filter, files, path.join(prefix, name)) - }) - else - files.push(prefix) - - return files -} - -function noDotFiles(x) { - return x[0] !== '.' -} diff --git a/node_modules/fs-readdir-recursive/package.json b/node_modules/fs-readdir-recursive/package.json deleted file mode 100644 index 5fc1947e..00000000 --- a/node_modules/fs-readdir-recursive/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "fs-readdir-recursive", - "description": "Recursively read a directory", - "version": "1.1.0", - "scripts": { - "test": "mocha --reporter spec", - "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot", - "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot" - }, - "devDependencies": { - "istanbul": "0", - "mocha": "3", - "should": "*" - }, - "author": { - "name": "Jonathan Ong", - "email": "me@jongleberry.com", - "url": "http://jongleberry.com", - "twitter": "https://twitter.com/jongleberry" - }, - "repository": "fs-utils/fs-readdir-recursive", - "files": [ - "index.js" - ], - "license": "MIT" -} |
