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

@henderea/node-utils

Package Overview
Dependencies
Maintainers
1
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@henderea/node-utils

Some node utility scripts

latest
Source
npmnpm
Version
2.6.34
Version published
Weekly downloads
12
500%
Maintainers
1
Weekly downloads
 
Created
Source

@henderea/node-utils

Some utility scripts written in NodeJS and distributed via NPM.

Installing

npm install -g @henderea/node-utils

Scripts

xpath-get

Get a value from a file using xpath

Usage

xpath-get XML_FILENAME XPATH_EXPRESSION
xpath-get pom.xml "/project/dependencies/dependency[artifactId='log4j']/version/text()"

You can also call xpath-get help, xpath-get --help, or xpath-get -h to get usage info.

xpath-set

Set a node's text content in a file using xpath

Usage

xpath-set [-y|--yes] XML_FILENAME XPATH_EXPRESSION NEW_VALUE
xpath-set pom.xml "/project/dependencies/dependency[artifactId='log4j']/version" "4.0.0"

You can also call xpath-set help, xpath-set --help, or xpath-set -h to get usage info.

You can pass -y or --yes to xpath-set to automatically confirm the change.

moment-date

Format a date using MomentJS

Usage

moment-date [-o|--output-format|-f|--format OUTPUT_FORMAT] [-i|--input-format INPUT_FORMAT] [-d|--date DATE] [-t|--output-timezone OUTPUT_TIMEZONE] [-z|--input-timezone INPUT_TIMEZONE]
moment-date -f 'dddd, MMMM Do YYYY, h:mm:ss.SSS a'

Please see moment-date help for usage info (also available with moment-date -h and moment-date --help)

FAQs

Package last updated on 10 Mar 2025

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