
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
@handout/handout
Advanced tools
Modular, dependency-free, extensible asynchronous Form submission library leveraging latest web standards
BETA: Use at your own risk!
Modular, dependency-free, extensible asynchronous Form submission library leveraging latest web standards
install the package:
npm install @handout/handout
import into your code
import Handout from '@handout/handout';
The library is built as an ES6 module, to use it in the browser you need to transpile it using one of the many tools available ( Babel, Bublè, etc )
Submit a form on the page
const form = document.querySelector('form');
new Handout(form)
.submit()
.then(response => {
if (response.status >= 400) {
// Handle response error
} else {
// Handle response data
console.log(response.data);
}
}).catch(error => {
// Handle request error
});
Add data programmatically
new Handout('http://your-awesome-api.com', 'post')
.add('name', 'John')
.add('surname', 'Doe')
.submit()
.then(response => {
// Handle response
}).catch(error => {
// Handle errors
});
The library supports a variety of events and filters to extend its behaviour, for a full list of all events and filters available check the events section.
The core functionality is quite basic, but can be easily extended through plugins.
Official plugins:
![]() Chrome | ![]() Firefox | ![]() Safari | ![]() Edge |
---|---|---|---|
last 2 versions | last 2 versions | last 2 versions | Edge |
To support IE11 you need FormData and Promise polyfills
FAQs
Modular, dependency-free, extensible asynchronous Form submission library leveraging latest web standards
The npm package @handout/handout receives a total of 0 weekly downloads. As such, @handout/handout popularity was classified as not popular.
We found that @handout/handout demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.