Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

fox-finder/FoxBase

Open more actions menu

Repository files navigation

FoxBase

Base modules for @fox-finder

Usage

yarn add @fox-finder/base
import MyFsService from 'my-fs-service';
import { IFile, FoxFileProvider } from '@fox-finder/base'

export class MyFileProvider implements FoxFileProvider {

  constructor(options) {
    this.myFsService = new MyFsService(options)
  }

  listFile(path: string, keyword?: string): Promise<IFile[]> {
    return new Promise((resolve, reject) => {
      return this.myFsService.getFileList(path, fileList => {
        resolve(fileList.map(file => ({
          // ...
        })))
      })
    });
  }

  // other methods...
}

Acknowledgements

About

Base modules for @fox-finder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.