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

files-list

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

files-list

get path dir/child all file path

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
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
Default:1
Desc:how deep you want

filesList.sync(path, [options])

name:sync
Type:function
Desc:same args, but sync

cancat

  • dirs-list get dir path

Use by

License

MIT © chinanf-boy

FAQs

Package last updated on 13 Sep 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc