1.0.3 • Published 5 years ago

chrome-file-system-api v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

chrome-file-system-api

Installation

To install this library, run:

$ npm install chrome-file-system-api --save

Usage

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ChromeFileSystemService } from 'chrome-file-system-api';


@NgModule({
  declarations: [
    
  ],
  imports: [
    BrowserModule,
  ],
  providers: [ChromeFileSystemService],
  bootstrap: []
})
export class AppModule { }

Methods

MethodParamDescription
createFile()File nameCreates a new file
createDirectory()Directory nameCreates a new directory
writeFile()Path and blob fileSaves a blob file
readFile()Path and return typeReads a file and return a blob or text content (according the return type)
deleteFile()File nameDeletes a file by name
deleteDirectory()Directory NameDeletes a directory by directoryName

License

MIT © Davi Leal

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.0

5 years ago