https://github.com/vanillaes/esmtk
ES Module ToolKit
https://github.com/vanillaes/esmtk
cli developer-tools esm esmodules nodejs
Last synced: 17 days ago
JSON representation
ES Module ToolKit
- Host: GitHub
- URL: https://github.com/vanillaes/esmtk
- Owner: vanillaes
- License: mit
- Created: 2020-06-19T02:14:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-24T14:26:36.000Z (about 4 years ago)
- Last Synced: 2025-09-12T23:52:36.400Z (5 months ago)
- Topics: cli, developer-tools, esm, esmodules, nodejs
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ES Module Toolkit
ESMTK, essential tools and libs for ES module development
## Lint
Lint uses StandardJS to lint the source
### Arguments
`esmtk lint [--fix]`
- `--fix` - automatically fix problems
### Usage
```sh
esmtk lint
```
## Bundle
Bundle uses ESBuild to compile an ES module (and its deps) into a bundle
### Arguments
`esmtk bundle [input] [output]`
- `[input]` - the input source file path
- `[output]` - the output bundle file path
### Usage
```sh
esmtk bundle src/sample.js bundle.js
```
## Minify
Minify uses ESBuild to compile an ES module (and its deps) into a minified bundle
### Arguments
`esmtk minify [input] [output]`
- `[input]` - the input source file path
- `[output]` - the output bundle file path
### Usage
```sh
esmtk minify src/sample.js bundle.min.js
```
## CommonJS
CommonJS uses ESBuild to compile an ES module (and its deps) into a CommonJS bundle
### Arguments
`esmtk commonjs [input] [output]`
- `[input]` - the input source file path
- `[output]` - the output bundle file path
### Usage
```sh
esmtk commonjs src/sample.js bundle.cjs
```
## Copy
Copy us a cross-platform clone of the `cp` command in Linux
### Arguments
`esmtk cp -rf [source] [destination]`
- `[source]` - the source file/glob
- `[destination]` - the destination file/directory
- `-r, --recursive` - copy files/directories recursively
- `-f --force` - force overwrite existing files
### Usage
```sh
esmtk cp src/* dest/
```