Socket
Book a DemoInstallSign in
Socket

jetbusboy

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jetbusboy

JetPath plugin for file upload using busboy and dependent on nodejs

1.0.4
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

jetPath plugin for file upload using busboy and dependent on nodej

Explore JetPath APIs »

Join Community . Report Bug . Request Feature

--

Installation

Install JetPath Right away on your project using npm or Javascript other package managers.

npm i jetpath --save

An hello App setup

import { JetPath } from "jetpath";
import { jetbusboy } from "jetbusboy";

const app = new JetPath({
  port: 9000,
});
app.use(jetbusboy);
app.listen();

// in your uploader.jet.js

// handler
export async function POST_upload(ctx: Context) {
  const form = await ctx.app.formData(ctx);
  console.log(form);
  if (form.image) {
    await form.image.saveTo(form.image.filename);
  }
  ctx.send(form);
}

// body validation and definition
export const BODY_: JetSchema = {
  body: {
    image: { type: "file", inputType: "file" },
    video: { type: "file", inputType: "file" },
    textfield: { type: "string", nullable: false },
  },
  method: "POST",
};

Apache 2.0 Lincenced

Opensourced And Free.

Uiedbook is an open source, our vision is to make the web better, improving and innovating infrastructures for a better web experience.

You can join on telegram. Ask your questions and contribute XD.

Contribution and License Agreement

If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work.

Support

Your contribution(s) is a good force for change anytime you do it, you can ensure JetPath's growth and improvement by contributing a re-occuring or fixed donations to:

https://www.buymeacoffee.com/fridaycandour

Or Click.

Keywords

busboy

FAQs

Package last updated on 31 Jul 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.