mirror of
https://github.com/hanzoai/tractor-beam.git
synced 2026-10-30 18:19:16 +00:00
master
A version written into a manifest is written into every manifest that wants it, which is how eslint came to exist in a hundred and four forms across this estate and how a package came to resolve twice at run time. The catalog moves the number out of the manifest: a manifest names the package, the workspace names the version. Four are held below their latest because the newer release cannot be used, and the reason is recorded rather than the version alone: @noble/hashes 2 renamed every subpath the web3 stack imports, @splinetool/runtime 2 depends on a package that was never published, @dynamic-labs 5.4.1 the same, and react-resizable-panels 3 points its types condition at the bundle.
tractor-beam
Future-proof file upload
Directory upload using proposed Directory Upload spec as part of the new FileSystem API.
Overview
User should be able to drag and drop a folder and upload site which will be statically hosted by us. We will leverage the new Directory Upload proposal (part of the new FileSystem API) which is currently only supported in Firefox Nightly / Edge. Chrome 25+ can be supported with a polyfill.
Spec: https://wicg.github.io/directory-upload/proposal.html / http://w3c.github.io/filesystem-api/ Example: https://wicg.github.io/directory-upload/index.html
Flow
Create TractorBeam instance with options
Options should include a parameter called postPath. postPath should
either be a function that takes a file returns a string or a simply string
Install
$ npm install tractor-beam --save
License
Description
JavaScript library for drag-and-drop folder uploads using the Directory Upload API proposal.
232 KiB
Languages
JavaScript
85.1%
CoffeeScript
14.9%