# tiny-bigas

> testing npm

Latest version **1.4.0** (published 2022-08-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install tiny-bigas
pnpm add tiny-bigas
yarn add tiny-bigas
bun add tiny-bigas
```

## 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.4.0 |
| Published | 2022-08-05 |
| First published | 2022-08-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | bigasdev |
| Maintainers | bigasdev |

## Links

- npm: https://www.npmjs.com/package/tiny-bigas
- npm.io page: https://npm.io/package/tiny-bigas

## Dependencies (1)

- [tiny-bigas](https://npm.io/package/tiny-bigas.md) ^1.0.0

## Recent versions

- 1.4.0 (latest) — 2022-08-05
- 1.3.0 — 2022-08-05
- 1.2.0 — 2022-08-05
- 1.1.0 — 2022-08-04
- 1.0.0 — 2022-08-04

## README

# Tiny-bigas
![GitHub package.json version](https://img.shields.io/github/package-json/v/bigasdev/tiny-bigas)

Package created to help with adding pixel-art elements and buttons to my electron.js development.

It uses the canvas html element to display stuff in the screen, and with stuff such as a update() function we can add callbacks to everything.

# How to install

```
npm i tiny-bigas
```

# How to use
```js
const tinyBigas = require('tiny-bigas');
const render = require('./node_modules/tiny-bigas/bigasrender.js');

// And then, inside the preload.js 

window.addEventListener('DOMContentLoaded', () => {
    tinyBigas.exports.addButton(new tinyBigas.Button("Test", 5, [150,0], ()=>{
        console.log("I'm a button!");
    }));

    render.exports.main();
    render.exports.initialize();
});
```

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