Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crude-build

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crude-build

A crude build utility for single file JavaScript projects

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by40%
Maintainers
0
Weekly downloads
 
Created
Source

CrudeBuild.js

CrudeBuild.js is a simple JavaScript build tool designed to handle minification and header generation tasks for single file libraries, with no configuration needed. It supports the generation of CommonJS and ES module exports.

Features

  • Minification: Automatically minifies your JavaScript files for optimized production builds.
  • Header Generation: Extracts metadata from your package.json file to generate headers for your build output.
  • Zero Configuration: Works out of the box without any need for configuration files.
  • Zero Dependencies: Lightweight and self-contained with no external dependencies.
  • CommonJS and ESM Export Generation: Automatically generates both CommonJS (.cjs) and ES module (.mjs) exports for easy module consumption.

Installation

Install CrudeBuild.js using npm:

npm install crude-build

Usage

Once installed, you can add it to the scripts of your package.json :

 "build": "crude-build ModuleName",

By default, CrudeBuild.js will:

  1. Create browser JavaScript files that get minified using Closure Compiler.
  2. Generate output files in the dist/ folder.
  3. Add a header to the output file, which includes metadata (name, version, author) from your package.json.
  4. Create both .cjs (CommonJS) and .mjs (ES Module) files in the dist/ folder for cross-environment compatibility.

Copyright (c) 2025, Robert Eisele Licensed under the MIT license.

Keywords

FAQs

Package last updated on 28 Oct 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc