All Projects → nspragg → file-js

nspragg / file-js

Licence: other
Abstract representation of a pathname

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to file-js

cypress-upload-file-post-form
Solution for two Cypress testing use-cases I came across with: perform a direct http FORM request to the server containing a file and other parameters and upload a file into a form before submission
Stars: ✭ 59 (+353.85%)
Mutual labels:  file
lfimg
Image preview support for lf (list files) using Überzug
Stars: ✭ 174 (+1238.46%)
Mutual labels:  file
exrs
100% Safe Rust OpenEXR file library
Stars: ✭ 79 (+507.69%)
Mutual labels:  file
mat-file-upload
A simple & configurable Angular Material file upload component.
Stars: ✭ 14 (+7.69%)
Mutual labels:  file
gh fsync
🔄 GitHub action to sync files across repos in GitHub
Stars: ✭ 17 (+30.77%)
Mutual labels:  file
ansible-role-glusterfs
Ansible Role - GlusterFS
Stars: ✭ 95 (+630.77%)
Mutual labels:  file
Waarp-All
This version is a major version for all Waarp Modules, previously being split.
Stars: ✭ 18 (+38.46%)
Mutual labels:  file
qrcode-parser
A pure javascript QR code decoding library, accept PNG File object, PNG image url, image base64.
Stars: ✭ 44 (+238.46%)
Mutual labels:  file
react-file-input-previews-base64
This package provides an easy to use, ready to go and customizable wrapper around file input, with option for image previews and returning file as base64 string.
Stars: ✭ 15 (+15.38%)
Mutual labels:  file
semicon
A collection of icons for the Semantic Web and Linked Open Data world.
Stars: ✭ 20 (+53.85%)
Mutual labels:  file
ElegantData
像操作Room一样操作 SharedPreferences 和 File 文件.
Stars: ✭ 18 (+38.46%)
Mutual labels:  file
MagicaVoxel File Writer
MagicaVoxel File Writer dependency free cpp class
Stars: ✭ 26 (+100%)
Mutual labels:  file
ZFileManager
Android 文件操作
Stars: ✭ 124 (+853.85%)
Mutual labels:  file
loadkit
Java 资源加载器,充分拓展ClassLoader#getResources(name)的能力,实现递归加载,支持普通风格 / 包名风格 / ANT风格 / 正则风格路径的资源加载同时支持自定义过滤器,通常作为框架的基础类库。
Stars: ✭ 39 (+200%)
Mutual labels:  file
flysystem-sync
Filesystem sync using Flysystem project.
Stars: ✭ 26 (+100%)
Mutual labels:  file
github-diff-explorer
The GitHub Diff Explorer is a Chrome/Firefox extension that generates a seamless file explorer with a minimalist focus.
Stars: ✭ 27 (+107.69%)
Mutual labels:  file
cache
🥌 Deno cache library
Stars: ✭ 38 (+192.31%)
Mutual labels:  file
Curator
A lightweight key-value file manager written in Swift.
Stars: ✭ 14 (+7.69%)
Mutual labels:  file
arrayfiles
Array-like File Access in Python
Stars: ✭ 41 (+215.38%)
Mutual labels:  file
opentab
开源的轻应用后端(Open Tiny App Backend),轻量,高效,易部署。
Stars: ✭ 27 (+107.69%)
Mutual labels:  file

file-js

NPM downloads Build Status Coverage Status github-issues stars forks

Abstract representation of a pathname

Installation

npm install --save file-js

Demo

Features

  • File glob matching
  • File listings
  • Assert file permissions
  • Supports promises
  • Supports synchronous and asynchronous methods
  • Supports recursive operations (copy/delete)

Usage

const File = require('file-js');

const file = File.create('myDir');
const files = await file.getList();
files.forEach(console.log);

const file = File.create('myDirectory');
if (file.isDirectorySync()) {
  console.log('processing directory');
}

Documentation

For more examples and API details, see API documentation

Test

npm test

To generate a test coverage report:

npm run coverage
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].