Types and I/O methods for Walls Cave Survey data file formats
I'm not going to go to much trouble to document it here unless people ask, the types are pretty self-explanatory:
Types and factory functions for AST nodes of .srv (survey) files
import { formatWallsSrvFile } from '@speleotica/walls/srv'It takes a WallsSrvFile, and optionally an options hash with a write function.
If you don't provide write, it will return the output as a string. Otherwise,
it will call write with chunks of data, so you can pass write connected to a
file write stream.
Types and factory functions for AST nodes of .wpj (project) files
import { formatWallsWpjFile } from '@speleotica/walls/wpj'It takes a WallsWpjFile, and optionally an options hash with a write function.
If you don't provide write, it will return the output as a string. Otherwise,
it will call write with chunks of data, so you can pass write connected to a
file write stream.
import { writeWallsProject } from '@speleotica/walls/node'Writes the .wpj file and .srv files of a project to disk.
The path to write the project file to
The project file AST. .srv files will only be written for WallsProjectSurvey nodes with a content property.