@stenway/sml-browser
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

SML-Browser

About this package

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

Getting started

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

npm install @stenway/sml-browser

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

SmlDownload.download(SmlDocument.parse("Begin\n\tAttribute 123 #Comment\nEnd"), "Test.sml")

You can see a similar package, which is the wsv-browser package, in action in this video.

Related packages

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

Package Sidebar

Install

npm i @stenway/sml-browser

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

5.51 kB

Total Files

7

Last publish

Collaborators

  • stenway