New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@carlosnunezmx/csv_bun_plugin

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@carlosnunezmx/csv_bun_plugin

An simple csv loader bun plugin

latest
npmnpm
Version
0.5.1
Version published
Maintainers
0
Created
Source

CSV Loader Plugin for Bun

Created with @fast-csv/parse

Usage

Installation

bun install @carlosnunezmx/csv_loader_bun

Use as plugin in runtime

In your preload file you need to plug-in

import csv_config from "@carlosnunezmx/csv_loader_bun";
import { plugin } from "bun";

// Mount your plugins :D
plugin(csv_config({
  // Your config
}))

Then you need to import it into your bunfig.toml

preload = ["plugins.ts"]

Now you can import your csv as a normal module.

import {data} from "mydata.csv"
console.log(data);

Get types

To get types to your modules you need to import this file to your global.d.ts file

// global.d.ts
import "@carlosnunezmx/csv_loader_bun/types";

FAQs

Package last updated on 07 Nov 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