# eht-common-libraries

> Common internal libraries for web projects

Latest version **1.1.3** (published 2020-09-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install eht-common-libraries
pnpm add eht-common-libraries
yarn add eht-common-libraries
bun add eht-common-libraries
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2020-09-12 |
| First published | 2020-09-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 872.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ogr |
| Maintainers | osc.gr |

## Links

- npm: https://www.npmjs.com/package/eht-common-libraries
- npm.io page: https://npm.io/package/eht-common-libraries

## Recent versions

- 1.1.3 (latest) — 2020-09-12
- 1.1.1 — 2020-09-12
- 1.1.0 — 2020-09-12

## README

# common-libraries

Common internal libraries for web projects\
All EHT-made libraries are bundled under a common file

## Use the bundle

The bundle (`min.js` and `min.js.map` files) should be imported in a `/lib` folder and imported in the `index.html` like this
```
<script src="lib/eht-common.min.js"></script>
```
That's it.\
All libraries are available under `EhtCommon`\

Ex: 
```
EhtCommon.MessageId.toHeader();
```


## Edit libraries

Install NPM dependencies :
```
npm i
```
Libs are in `src` directory.\
If you want to create a new one, make sure to add it in the `index.js`.\
Watch for changes :
```
npm run watch
```
The generated file should not be used in a production environment. The file should only be used in a dev / testing environment. To compile bundle, see next section.

## Generate bundle

### Compile bundle
After editing, run this :
```
npm run build
```

---
_Source: https://npm.io/package/eht-common-libraries · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
