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

radis

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radis

A Javascript dependency injection base on Angular.js API.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
90
decreased by-22.41%
Maintainers
1
Weekly downloads
 
Created
Source

Radis logo

Travis Coverage Status Greenkeeper badge

NPM

Quickstart


const { radis } = require('radis');


class Unicorn {
  constructor(name) {
      this.name = name;
  }
  
  poop() {
    console.log(`${this.name} poop rainbow`);
  }
}

class UnicornProvider {
    constructor($injector, name) {
        this.name = name;
    }
    setName(name) {
        this.name = name;
    }
    $get() {
        return new Unicorn(this.name);
    }
}

radis
    .module('app', [])
    .provider('alice', UnicornProvider)
    .provider('anonymousUnicorn', UnicornProvider)
    .config((anonymousUnicornProvider) => anonymousUnicornProvider.setName("paul"))
    .run((alice, anonymousUnicorn) => {
        alice.poop(); // alice poop rainbow
        anonymousUnicorn.poop(); // paul poop rainbow
    })
    .bootstrap()
;

Requirement

Radis use ES6 syntax internally so it require node >= 6.

Documentation

Go to documentation

FAQs

Package last updated on 26 Mar 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