Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
angular2-metric-conversion-pipes
Advanced tools
The sources for this package are in (https://github.com/vimalavinisha/angular2-image-popup) repo. Please file issues and pull requests against this repo.
##Usage
node install
npm install angular2-metric-conversion-pipes
bower install
bower install metric-conversion-pipes
###2.component file use like below
import {Component} from 'angular2/core';
import {TempConversions,MassConversions,LengthConversions} from '../directives/angular2-metric-conversion-pipes/index';
@Component({
selector : 'my-app',
pipes: [TempConversions,MassConversions,LengthConversions],
template: <h3> TempConversions - Example </h3> <p> Supported TempConversions pipes- C-F, C-K, F-C, F-K, K-F, K-C </p> <span> C -> Celsius, F -> Fahrenheit , K-> Kelvin <h5> Celsius To Fahrenheit Conversion: {{temperature | TempConversions:'C-F':1}}</h5> <h3> Mass/Weight Conversions - Example </h3> <p> Supported Mass/Weight pipes- g-kg, g-lb, g-oz, kg-g, kg-lb, kg-oz, lb-g, lb-kg, lb-oz, oz-g, oz-kg,oz-lb</p> <span> g -> Gram, kg-> KiloGram , lb -> Pound, oz -> Ounce </span> <h5> Weight Kg to LB Conversion: {{ mass| massConversions:'kg-lb':2}}</h5> <h3> LengthConversions - Example </h3> <p> Supported LengthConversions pipes- FT-CM, FT-M, FT-IN, FT-MI, FT-YD, IN-FT, IN-M, IN-MI, IN-YD, IN-CM, CM-FT,CM-IN, CM-M, CM-YD, CM-MI, M-FT, M-IN, M-CM, MI-IN, MI-FT, MI-CM, YD-FT, YD-IN, YD-CM</p> <span> CM -> Centimeter, M -> Meter , IN-> Inches , FT -> Foot(Feet), MI -> Mile, YD -> Yard </span> <h5> LengthConversions from CM to Inches: {{length | lengthConversions:'CM-IN':3}} </h5>
})
export class AppComponent {
temperature:number = 20;
mass:number = 47;
length:number = 157;
}
FAQs
metric-conversion-pipes directive for angular2
The npm package angular2-metric-conversion-pipes receives a total of 1 weekly downloads. As such, angular2-metric-conversion-pipes popularity was classified as not popular.
We found that angular2-metric-conversion-pipes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.