# @rbxts/make

> Shorthand for declaring Instances with properties.

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

## Install

```sh
npm install @rbxts/make
pnpm add @rbxts/make
yarn add @rbxts/make
bun add @rbxts/make
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2021-10-10 |
| First published | 2019-06-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Validark |
| Maintainers | validark |
| Keywords | resources, roblox-typescript, RemoteEvents, RemoteFunctions, Remotes, Folder, Manager |

## Links

- npm: https://www.npmjs.com/package/@rbxts/make
- Repository: https://github.com/Validark/Roblox-TS-Libraries.git#master
- Homepage: https://github.com/Validark/Roblox-TS-Libraries/blob/master/make/README.md
- Issues: https://github.com/Validark/Roblox-TS-Libraries/issues
- npm.io page: https://npm.io/package/@rbxts/make

## Dependencies (2)

- [@rbxts/types](https://npm.io/package/@rbxts/types.md) ^1.0.537
- [@rbxts/compiler-types](https://npm.io/package/@rbxts/compiler-types.md) ^1.2.3-types.1

## 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

- 1.0.6 (latest) — 2021-10-10
- 1.0.5 — 2021-06-01
- 1.0.4 — 2021-01-10
- 1.0.3 — 2020-12-27
- 1.0.2 — 2020-07-16
- 1.0.1 — 2019-06-13
- 1.0.0 — 2019-06-13

## README

# Make

A library providing sugar for declaring Instances. Mostly self-explanatory.

Usage:

Just pass in the ClassName of the Instance you want `Make` to generate with an object containing the properties it should have.

```ts
import Make from "make";

Make("Frame", {
	Active: false,
	Children: [
		Make("ImageLabel", {
			Image: "",
			BackgroundTransparency: 0,
			ImageTransparency: 0.5,
			Children: [Make("ImageButton", {})],
		}),
		Make("ImageButton", {
			MouseButton1Down: (x: number, y: number) => {
				print(x, y);
			},
		}),
	],
});
```

Additional Implementation details:

- `Children` is a whitelisted member. It expects an array of Instances which will be parented to the generated instance.
- Setting an event member, like `MouseButton1Down` in the example above, will `Connect` the expected callback to the event.

###### Note: The `Parent` property is always set last. This avoids ordering bugs/inefficiency

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