/WSV-Browser-TS

Primary LanguageTypeScriptMIT LicenseMIT

WSV-Browser

About this package

This package is the browser-specific part mentioned in the environment-independent WSV package (You will find more information there about WSV in general). The package currently just contains a simple helper class to easily create a downloadable file.

Getting started

First get the WSV-Browser package installed with a package manager of your choice. If you are using NPM just run the following command:

npm install @stenway/wsv-browser

Create a WsvDocument and pass it to the static method download of the static WsvDownload class. Provide a file name as a second argument:

WsvDownload.download(WsvDocument.parse("Value11 Value12\nValue21"), "Test.wsv")

You can see this package in action in this video.

Related packages

The Stenway Text File Format Stack defines a set of formats that are built upon WSV. Check out the following related browser-packages: