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

halaman

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

halaman

JSX to html generator

latest
npmnpm
Version
0.2.4
Version published
Weekly downloads
4
-75%
Maintainers
1
Weekly downloads
 
Created
Source

halaman

JSX to html generator

This package is a ESM package. Your project needs to be ESM too. Read more.

Installation

npm install halaman

This generator relies on react/jsx-runtime, so make sure to install the react library as well.

npm install react @types/react

Usage

Usage: halaman [options] [command]

JSX to html generator

Options:
  -V, --version                output the version number
  -h, --help                   display help for command

Commands:
  dev [options] <src>
  build [options] <src> <dst>
  serve [options] <servedir>
  help [command]               display help for command

Programmatic usage

import { build, dev, serve } from 'halaman'

const src = 'src/pages'
const dst = 'dist'

// build
await build(src, dst)
await build(src, dst, {
  clean: true,
  pretty: true,
})

// dev
const server = await dev(src, {
  watch: 'src/**/*',
})
console.log(server)

// serve
const server = await serve(dst)
console.log(server)

Keywords

JSX to HTML converter

FAQs

Package last updated on 09 Aug 2023

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