Skip to content

jobala/todo-core

Repository files navigation

Todo Core

A core module for building CLI todo apps. Ships with a file storage provider out of the box and users can plugin in their own storage provider.

Using FileStorageProvider

import { FileStorageProvider } from './src/providers'
import { Todo } from './src/domain'

const storage = new FileStorageProvider()
const todo = new Todo(storage)

todo.add('Add delete functionality')

Build a custom storage provider

To build a custom provider implement the StorageProvider interface.

import { StorageProvider} from './src/providers'

class CustomStorageProvider implements StorageProvider {
  ...
}

About

Core module for any todo app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors