Socket
Book a DemoInstallSign in
Socket

@utatti/tinypack

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@utatti/tinypack

A simple TypeScript module bundler

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

Tinypack

A simple TypeScript module bundler, inspired by minipack

Features

  • Minimal dependency (only the TypeScript Compiler API)
  • Type check
  • Bundle TypeScript modules (only ECMAScript Modules)
  • Remove duplication for the same module
  • Resolve circular dependency
  • node_modules resolution

Install

Install globally with npm

npm install -g @utatti/tinypack

Run with tinypack.

Manual install from source

git clone https://github.com/utatti/tinypack.git
cd tinypack
yarn # or `npm i` should work too

Run bin/tinypack in the project root.

How to use

tinypack path/to/entry.ts

Play with examples

tinypack examples/01-simple # stdout
tinypack examples/01-simple | node # run

How does it work?

Use the code, Luke!

References

  • Minipack: A simplified example of a modern module bundler written in JavaScript
  • The TypeScript Compiler API

License

MIT

FAQs

Package last updated on 04 Jun 2018

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