New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

simple-file-list

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-file-list

simple file walker that list files

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

simple-file-list

Reads a folder, list all files, can save to disk.

require

as a regular node-module

  • npm i simple-file-list --save
const sfl = require('simple-file-list')

// list all files
sfl('./folder').then(result => {
	console.log(result)
})

// list all files matching with png
sfl('./folder', 'png').then(result => {
	console.log(result)
})

// list all files matching png and save to list.json
sfl('./folder', 'png, 'list.json).then(result => {
	console.log(result)
})

cli

run from terminal

  • npm i -g simple-file-list
$ simple-file-list ./folder
or
$ simple-file-list ./folder png
or
$ simple-file-list ./folder png list.json

Keywords

file

FAQs

Package last updated on 28 Mar 2017

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