
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ninjas-transforms
Advanced tools
A simple lightweight library exposing some very useful custom built pipes for angular projects.
A simple lightweight library exposing some very useful custom built pipes for angular projects.
To install this package, run the following command in your project:
npm i ninjas-transforms
To use this pipe in your Angular project, import the NinjasTransformsModule in your component's module:
import {NinjasTransformsModule} from 'ninjas-transforms'
All the pipes will be accessible to all the components declared by this module.
Finally you can use this pipe in your template like this.
{{ epochsInSeconds | duration }}
The duration pipe accepts the following options:
Here is an example of using the options:
{{ epochsInSeconds | duration: 'hours': true: 2: false: true: '-' }}
If you find any bugs or have suggestions for improvements, please open an issue or a pull request on GitHub.
This project is licensed under the MIT License.
FAQs
A simple lightweight library exposing some very useful custom built pipes for angular projects.
We found that ninjas-transforms 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.