0.0.1 • Published 4 years ago

@wanderspeak/journey-fs v0.0.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
4 years ago

Wanderspeak: Journey

CI

This typescript library provides a wrapper around the Journey API that is able to write and read on a file system.

Beginning a journey

JourneyIO.fs = require('fs');

const journey = JourneyFS.begin('path/to/directory');
journey.set({ name: "D'Artagnan" });
journey.post('Hello, World!');
journey.save();

Restoring a journey

JourneyIO.fs = require('fs');

JourneyFS.resume('path/to/directory').then((jfs: JourneyFS) => {
  console.log(jfs.hero.name);
});