Socket
Socket
Sign inDemoInstall

files-list

Package Overview
Dependencies
5
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    files-list

get path dir/child all file path


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

files-list Build Status

「 get path dir/+child all file path 」

Install

npm install files-list
yarn add files-list

Usage

const filesList = require('files-list');

(async () => {
    let results = await filesList('./test.js')
//  ['.editorconfig',
//   '.gitattributes',
//   '.gitignore',
//   '.npmrc',
//   '.travis.yml',
//   '.yo-rc.json',
//   'files-list.js',
//   'license',
//   'package.json',
//   'readme.md',
//   'test.js',
//   'yarn.lock' ]
});)

filesList.sync() is sync

API

filesList(path, [options])

path
name:path
Type:string
Desc:path file/dir
options
deep
name:deep
Type:number | string{'all'}
Default:1
Desc:how deep you want
ignore
name:ignore
Type:Array
Default:['.git', 'node_modules']
Desc:ignore Dir name you want

filesList.sync(path, [options])

split the code to files-list-sync

cancat

Use by

License

MIT © chinanf-boy

Keywords

FAQs

Last updated on 11 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc