https://github.com/droidxrx/get-files-paths
https://github.com/droidxrx/get-files-paths
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/droidxrx/get-files-paths
- Owner: droidxrx
- License: mit
- Created: 2021-10-03T23:07:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-04T01:30:43.000Z (over 3 years ago)
- Last Synced: 2025-03-07T21:04:36.081Z (3 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GET-FILES-PATHS
This get all files and path (`synchronous`)
### Install
```bash
npm install get-files-paths
yarn add get-files-paths
```### Usage
```javascript
// CommonJS
const getall = require('get-files-paths');
// ESModule
import getall from 'get-files-paths';const result = getall(['./', '../server'], '**/node_moules');
console.log(result.all());
console.log(result.onlyFiles());
console.log(result.onlyPaths());
```# LICENSE
[MIT](LICENSE)