All Projects → dy → save-file

dy / save-file

Licence: other
Save any data to file in browser or node

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to save-file

Save-System-for-Unity
Save System for Unity with AOT (IL2CPP) and assets references support.
Stars: ✭ 116 (+190%)
Mutual labels:  filesystem, save
-LibraryOS-Exokernel Implementation
Exokernel is one of the major sources for container and library OS techniques.
Stars: ✭ 41 (+2.5%)
Mutual labels:  filesystem
gtree
Output tree🌳 or Make directories📁 from #Markdown or Programmatically. Provide CLI, Golang library and Web (using #Wasm ).
Stars: ✭ 88 (+120%)
Mutual labels:  filesystem
ksmbd
ksmbd kernel server(SMB/CIFS server)
Stars: ✭ 181 (+352.5%)
Mutual labels:  filesystem
nestjs-storage
Nestjs file system / file storage module wrapping flydrive
Stars: ✭ 92 (+130%)
Mutual labels:  filesystem
paragon apfs sdk ce
Paragon APFS SDK Free
Stars: ✭ 97 (+142.5%)
Mutual labels:  filesystem
xv6-file-system-visualizer
Online Visualizer for xv6 File System Image
Stars: ✭ 33 (-17.5%)
Mutual labels:  filesystem
physfs-old
UNOFFICIAL Git mirror of PhysicsFS Mercurial repository. The official repository has also moved to GitHub; this one will no longer be updated. Official website:
Stars: ✭ 53 (+32.5%)
Mutual labels:  filesystem
glob
Pure Nim library for matching file paths against Unix style glob patterns.
Stars: ✭ 58 (+45%)
Mutual labels:  filesystem
gravity
User-space deniable data encryption client.
Stars: ✭ 89 (+122.5%)
Mutual labels:  filesystem
RxLogs
An Android & Kotlin Reactive Advanced Logging Framework.
Stars: ✭ 12 (-70%)
Mutual labels:  filesystem
yggdrasil
No description or website provided.
Stars: ✭ 26 (-35%)
Mutual labels:  filesystem
kodbox
kodbox is a file manager for web. It is a newly designed product based on kodexplorer. It is also a web code editor, which allows you to develop websites directly within the web browser.You can run kodbox either online or locally,on Linux, Windows or Mac based platforms
Stars: ✭ 1,188 (+2870%)
Mutual labels:  filesystem
OpenGnsys
OpenGnsys (pronounced Open Genesis) is a free and open source project that provides tools for managing and deploying different operating systems.
Stars: ✭ 15 (-62.5%)
Mutual labels:  filesystem
crunchdb
A simple JSON based database system written in PHP. Useful for smaller applications.
Stars: ✭ 32 (-20%)
Mutual labels:  filesystem
emojifs
emojifs is a FUSE filesystem that allows you to manipulate custom emojis on your various Slacks and Discords
Stars: ✭ 30 (-25%)
Mutual labels:  filesystem
libusbhsfs
USB Mass Storage Class Host + Filesystem Mounter static library for Nintendo Switch homebrew applications.
Stars: ✭ 81 (+102.5%)
Mutual labels:  filesystem
lustre-release
Mirror of official Lustre development repository http://git.whamcloud.com/
Stars: ✭ 35 (-12.5%)
Mutual labels:  filesystem
aliyun-oss-laravel
Laravel 的 Aliyun OSS 扩展, 支持 Laravel 9. Alibaba Cloud Object Storage Service For Laravel.
Stars: ✭ 91 (+127.5%)
Mutual labels:  filesystem
skywalker
A package to allow one to concurrently go through a filesystem with ease
Stars: ✭ 87 (+117.5%)
Mutual labels:  filesystem

save-file unstable Build Status Greenkeeper badge

Save file in node/browser. In browser it prompts save file dialog, in node it creates a file.

  • Provides common interface for both node/browser.
  • Fixes dialog race in browser − when multiple save-files are called at the same time.
  • Handles any types of input data − Buffer, ArrayBuffer, ArrayBufferView, File, Blob, data-uri string, ImageData etc.

Usage

npm install save-file

// const save = require('save-file')
import { save } from 'save-file'

await save(data, 'example.mp3')

const saveSync = require('save-file/sync')
saveSync(otherData, 'example2.mp3')

API

await save(data|filename, filename|data)

Save data source to the filename destination, return actual saved ArrayBuffer. saveSync performs synchronous call.

data type can be:

  • Buffer, ArrayBuffer
  • File, Blob
  • dataURI, base64 string
  • TypedArray, Array
  • ImageData, AudioBuffer
  • Object
  • ndarray
  • etc.

See to-array-buffer for the full list. The data is expected to be encoded to target format, for that purpose see image-encode, audio-encode etc.

Mime type is detected from the file extension/data type automatically.

Credits & related

  • file-saver − create download file dialog in browser.
  • write − write file in node, create directories if none.
  • to-array-buffer — turn anything into ArrayBuffer.
  • simple-mime — tiny mime types detector.

Copyright

© Dmitry Yv 2018. MIT Licensed.

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].