@funkybob/downlink
v0.1.0
Published
Download Browser-generated files.
Downloads
1
Readme
Download
Download browser-generated content to the user.
Usage
import {downlink} from '@funkybob/downlink';
// Sample YAML from http://yaml.org/start.html
let content = `
--- !clarkevans.com/^invoice
invoice: 34843
date : 2001-01-23
bill-to: &id001
given : Chris
family : Dumars
address:
lines: |
458 Walkman Dr.
Suite #292
city : Royal Oak
state : MI
postal : 48046
`;
downlink(content, 'sample.yaml', 'text/yaml');