0.0.41 • Published 3 years ago

hardocs-fs v0.0.41

Weekly downloads
11
License
GPLv2
Repository
-
Last release
3 years ago

Hardocs Fs (File System) module

All Contributors

This module is used to perform most file system operations in hardocs-desktop app.

Installation

npm install hardocs-fs
  # or
yarn add hardocs-fs

Hardocs Fs exports a lot of modules which includes project, file and cwd etc for most operations.

Basic Usage

Get your os current working directory:

const { cwd } = require('hardocs-fs');

cwd.get(); // => returns current working directory

cwd.set('path-to-dir'); // => Sets specified path as the current working directory.

Create a hardocs project (Basic)

const { project } = require('hardocs-fs');

project
  .create({
    name: 'test-project',
    docsDir: 'docs'
  })
  .then((response) => {
    console.log(response);
  })
  .catch((error) => {
    console.log(error);
  });

File operations (Basic delete operation)

const { file } = require('hardocs-fs');

file.delete({ filePath: '/path-to-file' });

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

0.0.41

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.222

3 years ago

0.0.21-beta

3 years ago

0.0.20-beta

3 years ago

0.0.19-beta

3 years ago

0.0.18-beta

3 years ago

0.0.17-beta

3 years ago

0.0.16-beta

4 years ago

0.0.14-beta

4 years ago

0.0.15-beta

4 years ago

0.0.13-beta

4 years ago

0.0.12-beta

4 years ago

0.0.11-beta

4 years ago

0.0.1-beta

4 years ago