
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
@progress/kendo-file-saver
Advanced tools
@progress/kendo-file-saver is a utility package that provides functionalities for saving files on the client-side. It is particularly useful for web applications that need to export data to files such as text, JSON, or binary formats.
Save Text File
This feature allows you to save a plain text file. The code creates a Blob object containing the text 'Hello, world!' and then uses the saveAs function to prompt the user to save the file as 'hello.txt'.
const { saveAs } = require('@progress/kendo-file-saver');
const blob = new Blob(['Hello, world!'], { type: 'text/plain;charset=utf-8' });
saveAs(blob, 'hello.txt');
Save JSON File
This feature allows you to save a JSON file. The code creates a Blob object containing a JSON string representation of a JavaScript object and then uses the saveAs function to prompt the user to save the file as 'data.json'.
const { saveAs } = require('@progress/kendo-file-saver');
const data = { name: 'John', age: 30 };
const blob = new Blob([JSON.stringify(data, null, 2)], { type: 'application/json' });
saveAs(blob, 'data.json');
Save Binary File
This feature allows you to save a binary file. The code creates an ArrayBuffer and fills it with some binary data, then creates a Blob object from the ArrayBuffer and uses the saveAs function to prompt the user to save the file as 'binary.bin'.
const { saveAs } = require('@progress/kendo-file-saver');
const arrayBuffer = new ArrayBuffer(8);
const view = new Uint8Array(arrayBuffer);
for (let i = 0; i < view.length; i++) {
view[i] = i * 2;
}
const blob = new Blob([arrayBuffer], { type: 'application/octet-stream' });
saveAs(blob, 'binary.bin');
The 'file-saver' package is a popular library for saving files on the client-side. It provides similar functionalities to @progress/kendo-file-saver, allowing you to save text, JSON, and binary files. It is widely used and has a simple API for file saving operations.
The 'browser-filesaver' package is another alternative for saving files in the browser. It offers similar capabilities to @progress/kendo-file-saver, including support for various file types and formats. It is designed to be lightweight and easy to use.
The 'save-as' package is a minimalistic library for saving files on the client-side. It provides basic functionalities similar to @progress/kendo-file-saver, focusing on simplicity and ease of use. It supports saving text, JSON, and binary files.
This package is part of the Kendo UI for Angular and KendoReact suites.
This is commercial software. To use it, you need to agree to the Telerik End User License Agreement for Kendo UI (for Kendo UI for Angular) or to the End User License Agreement for Progress KendoReact (for KendoReact). If you do not own a commercial license, this file shall be governed by the trial license terms.
All available Kendo UI commercial licenses may be obtained at http://www.telerik.com/purchase/kendo-ui.
Copyright © 2022 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.
FAQs
Kendo UI File Saving Helper
The npm package @progress/kendo-file-saver receives a total of 119,367 weekly downloads. As such, @progress/kendo-file-saver popularity was classified as popular.
We found that @progress/kendo-file-saver demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.