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

esw

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esw

A JavaScript/TypeScript library build tool. It offers blazing fast performance utilizing esbuild, and requires zero configuration.

  • 0.15.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
83
increased by50.91%
Maintainers
1
Weekly downloads
 
Created
Source

esw

github action npm (tag) node-current

esw is a JavaScript/TypeScript library build tool. It offers blazing fast performance utilizing esbuild, and requires zero configuration.

✨Passive usage

Infer build options from package.json by default. Ideally you don't need to write any configurations. Also support multiple entry points via glob syntax(eg. esw src/**/*.ts --outdir=dist) if necessary.

📦Optimized bundling

Driven by esbuild and only bundle codebase without any dependencies and peerDependencies by default.

Installation

npm i esw -D

Getting Started

3 steps to get started:

  1. 🖊 declare main or module or both them in the package.json.

    {
      "name": "esw",
      "main": "dist/index.cjs.js",
      "module": "dist/index.esm.js"
    }
    

    ⚠️ The output format what module field refers to always be treated as esmwhy.

  2. 🏃‍ Run esw build from the working directory.

    esw build
    
  3. 🏆 All transpiled products would be placed in the target output path which were inferred by esw.

    codebase root
     └─dist
        ├─index.cjs.js
        └─index.esm.js
    

Advanced Usage

esw has supported the most of esbuild cli options:

esw build --minify --sourcemap --platform=node --format=esm

Build codebase

esw build src/*.ts

Watch codebase

esw watch src/index.ts

Supported source file types

Please refer to esbuild documentation.

Supported package.json fields

Field nameStatus
main
module
type

License

MIT © Liu Bowen

Keywords

FAQs

Package last updated on 16 Apr 2022

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