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

ngx-fi-fuse

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-fi-fuse

fuse for ngx projects

  • 0.0.2
  • Source
  • npm
  • Socket score

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

NgxFiFuse

fuse as ngx-fi-fuse

Installation

  • npm i fuse.js --save
  • npm i ngx-fi-fuse --save

How to use

In a module

import { NgModule } from "@angular/core";
import { NgxFiFuseModule } from "ngx-fi-fuse";

@NgModule({
  imports: [NgxFiFuseModule], // for consumption within the scope of the module
  exports: [NgxFiFuseModule] // if propagation is required
})
export class SomeModule {}

Where required

import { Inject } from "@angular/core";
import { FuseOptions } from "fuse.js";
import { FuseFactoryDefinition, FUSE_TOKEN } from "ngx-fi-fuse";

export interface SomeItem {}

export class SomeClass {
  constructor(@Inject(FUSE_TOKEN) private fuseFactory: FuseFactoryDefinition) {
    const collection: SomeItem[] = [];
    const options: FuseOptions<SomeItem> = {};
    const fuse = this.fuseFactory<SomeItem>(collection, options);
  }
}

For testing

import { NgxFiFuseModule } from "ngx-fi-fuse";
import { FuseFactoryDefinition, FUSE_TOKEN } from "ngx-fi-fuse";

describe('TestingTitle', () => {
  let fuseFactory: FuseFactoryDefinition;
  beforeEach(async(() => {
      TestBed.configureTestingModule({
        imports: [NgxFiFuseModule]
      });

      fuseFactory = TestBed.get(FUSE_TOKEN);
    }));
  }));
}));

Keywords

FAQs

Package last updated on 12 Jul 2019

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