@h4x/common
TypeScript icon, indicating that this package has built-in type declarations

0.4.51 • Public • Published

@h4x/common

@h4x/common is a Typescript/JavaScript library that provides a lot of useful helpers without extending any built-in objects. It is mainly used in other @h4x/* packages, but it is designed as a universal package that can be used anywhere, including in the browser(with few exports disabled).

The packages doesn't have any dependencies, it does have devDependencies that are used during the development of the package. All of the variables, classes and functions are strictly typed and fully tested.

Node

The export for node is done using typescript compiler with "es2015" target, typing files are exported along side of JavaScript files and are setup in the package.json so they should just work without the need to download external typings.

Browser

The export for the browser is done using rollup using the esm format (es module). This format works in both rollup and webpack. The export includes a source map file and typings are provided by the main export. The exports are exposed on the package using both "jsnext:main" and "module".

Readme

Keywords

none

Package Sidebar

Install

npm i @h4x/common

Weekly Downloads

36

Version

0.4.51

License

MIT

Unpacked Size

2.38 MB

Total Files

180

Last publish

Collaborators

  • johnycilohokla