Socket
Book a DemoInstallSign in
Socket

@winterfoxxo/acacia

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@winterfoxxo/acacia

Simple application framework, for personal use

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Acacia

A simple application framework for personal use.

Usage

import {Application} from "@winterfoxxo/acacia";

const app = new Application({
    componentDir: __dirname,
    serviceDir: __dirname
});
app.load().then(() => console.log("Application loaded!"));

Components/Services

import {Service, Component, Ref} from "@winterfoxxo/acacia";

// services/MyService.ts
@Service("myService", 1)
export default class MyService {
}

// components/MyComponent.ts

@Component("myComponent", 1)
export default class MyComponent {
    @Ref public myService: MyService;
    init() {
        console.log(this.myService); // MyService {}
    }
}

FAQs

Package last updated on 30 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts