diff --git a/demo/test.html b/demo/test.html new file mode 100644 index 0000000..31bf091 --- /dev/null +++ b/demo/test.html @@ -0,0 +1,27 @@ + + + + + + + OPFS Tools + + + + + + + + + + \ No newline at end of file diff --git a/demo/test.ts b/demo/test.ts new file mode 100644 index 0000000..7d5991e --- /dev/null +++ b/demo/test.ts @@ -0,0 +1,10 @@ +import { tmpfile, write } from '../src'; + +console.log(111, localStorage.getItem('OPFS_TOOLS_EXPIRES_TMP_FILES')); +const f = tmpfile(); +console.log(222, f.path); +await write(f, '111111111'); + +await write('/.opfs-tools-temp-dir/xxx', '2222'); + +export {};