New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@ngx-armory/pipes

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngx-armory/pipes

Ngx Armory - Pipes

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

Ngx Armory - Pipes

npm MIT licensed
Enhance your Angular projects with a wide range of pipes


Table of contents

Installation

  • Use npm to install the package
$ npm install @ngx-armory/pipes --save
  • You could add to your standalone component or module a specific pipe such as IsNullPipe.
import {IsNullPipe} from '@ngx-armory/pipes';

@NgModule({
 // ...
 imports: [
   // ...
   IsNullPipe
 ]
})
import { IsNullPipe } from '@ngx-armory/pipes';

@Component({
  // ..
  standalone: true,
  imports: [IsNullPipe],
})
export class AppComponent {}
  • Pipes are also injectable and can be used in Components / Services / etc..
import { IsNullPipe } from '@ngx-armory/pipes';

@Component({
  // ..
  providers: [IsNullPipe],
})
export class AppComponent {
  constructor(private isNullPipe: IsNullPipe) {
    const nullable = null;
    this.isNullPipe.transform(nullable); // Returns: true
  }
  // ..
}
  • You can also use pipes as part of your template for ex.
<p>{{ "foo" | isNull }}</p>
<!-- Output: false -->

This library was generated with Nx.

Keywords

angular

FAQs

Package last updated on 23 May 2023

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