# brandjs

> Simple code HTML Components Framework using NodeJS

Latest version **1.1.2** (published 2021-10-13) · ISC license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2021-10-13 |
| First published | 2021-10-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | xfacio |

## Links

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

## Dependencies (2)

- [jsdom](https://npm.io/package/jsdom.md) ^18.0.0
- [express](https://npm.io/package/express.md) ^4.17.1

## Recent versions

- 1.1.2 (latest) — 2021-10-13
- 1.1.1 — 2021-10-13
- 1.1.0 — 2021-10-13
- 1.0.2 — 2021-10-12
- 1.0.1 — 2021-10-12
- 1.0.0 — 2021-10-12

## README

Simple code
HTML Components Framework using NodeJS

```
const Brand = require("brandjs")
const brand = new Brand("./views/index.html") // initilaize brand

brand
    .usePort(80) // using port
    .dev() // development mode
    .use(require("./src/topbar/topbar.brand")) // using component
    .use(require("./src/component/component.brand")) // using component
    .compile() // compile
    .deploy() // deploy as HTTP server
```

Simple component

component.brand file: ```
module.exports = {
    name: 'Component', // Name of component
    render(props, element) {
        return \"\<div class=\"test\"\>${props.supername}\<\/div\>\"
    }
}
```

./views/index.html file example: ```
    <body brand-app>
        Mega website!
        <Component data-supername="Super Name!" />
    </body>
```

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