1.0.0 • Published 9 months ago

@giancosta86/marinero v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

marinero

TypeScript utilities for the browser

GitHub CI npm version MIT License

Overview

marinero provides TypeScript utilities for vanilla UI within the browser.

Installation

The package on NPM is:

@giancosta86/marinero

The public API entirely resides in the root package index, so you shouldn't reference specific modules.

Usage

The Download namespace includes:

  • fromDataUrl() - given a data URL, automatically triggers a download in the browser with the suggested file name

  • objectAsJson() - given any object, converts it to a JSON string downloaded as a text file with the suggested file name