Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@roots/bud-framework

Package Overview
Dependencies
Maintainers
5
Versions
917
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@roots/bud-framework

Bud's backing framework

  • 2.0.0-next.19
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
increased by2.91%
Maintainers
5
Weekly downloads
 
Created
Source

Bud

MIT License Follow Roots

@roots/bud-framework

Overview

This is the core framework leveraged by @roots/bud. You may find it useful in other projects. It's kind of a bootstrap-y laravel/adonis style container-based framework.

Installation

yarn add @roots/bud-framework

Some things you can do with it

Attach things to it.

import {framework} from '@roots/bud-framework'

framework.apply('method', () =>
  console.log('attach a method to it'),
)

const instance = new framework()

instance.method() // => 'attach a method to it'

Log stuff.

instance.logger.info({data: 100}, 'Logged message')

Create containers for storing, accessing and manipulating stuff.

instance.bind('things', {
  some: {
    thing: 100,
  },
})

instance.things.get('some.thing')
// => 100

instance.things.set('some.thang', 200)
instance.things.get('some')
// => {some: {thing: 100, thang: 200}}

It definitely does other helpful stuff. As this is a lower-level utility it is largely undocumented, at the moment..

Contributing

Contributions are welcome from everyone.

We have contributing guidelines to help you get started.

Bud sponsors

Help support our open-source development efforts by becoming a patron.

Community

Keep track of development and community news.

FAQs

Package last updated on 11 Sep 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc