# hlark

> an javascript toolbox

Latest version **0.0.7** (published 2021-04-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install hlark
pnpm add hlark
yarn add hlark
bun add hlark
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2021-04-12 |
| First published | 2021-03-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | huxiaohao |
| Maintainers | huxiaohao |
| Keywords | typescript, javascript, nodejs |

## Links

- npm: https://www.npmjs.com/package/hlark
- Repository: https://github.com/huxiaohao2019/hlark
- Homepage: https://github.com/huxiaohao2019/hlark#readme
- Issues: https://github.com/huxiaohao2019/hlark/issues
- npm.io page: https://npm.io/package/hlark

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.7 (latest) — 2021-04-12
- 0.0.5 — 2021-03-30
- 0.0.4 — 2021-03-26
- 0.0.3 — 2021-03-26

## README

# hlark
an javascript toolbox

# use in browser

```javascript
let obj1 = {
    age: 1
}
let obj2 = {
    username:'hello'
}

hlark.applyMixins(obj1, [obj2]);

console.log("🚀 ~ obj1", obj1); //{age: 1, username: "hello"}
```

# typescript
```typescript
import hlark from 'hlark';
class Dog {
    age: any;
    hello() {
        console.log("🚀 ~ Dog ~ hello ~  this.age", this.age);
    }
}

class Cat implements Dog {
    age = 1;
    hello() { }
}

hlark.applyClassMixins(Cat, [Dog]);

let cat1 = new Cat();
console.log("🚀 ~ cat1", cat1);//Dog { age: 1 }
cat1.hello();//hello ~  this.age 1
```

# commonjs
```javascript
var hlark = require('hlark');

let obj1 = {
    age: 1
}
let obj2 = {
    username:'hello'
}

hlark.applyMixins(obj1, [obj2]);

console.log("🚀 ~ obj1", obj1);//{ age: 1, username: 'hello' }
```

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