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

grepord

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grepord

Grep for an ordered list of files

  • 1.8.23
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status dependencies Status license npm version Automated Release Notes by gren

About

Use this program to grep (search) for an ordered list of files. Example: Within a given directory, you could find the most recently updated files that contain the text 'hello world'.

Installation

npm install -g grepord

Usage

grepord <grep arguments>… [-sort:[<fs.Stats property>][,][(desc|asc)][,][<limit number>]]

Grepord requires grep to already be installed. Type grep -h to check if grep is installed.

To use this program, you must enter grep arguments that will return file paths. Example: grepord -iRl './' -e 'hello world'

You can sort by the properties of fs.Stats. See: https://nodejs.org/api/fs.html#fs_class_fs_stats

The default sort is mtime descending. The format for changing the sort is -sort: as the last argument, with an optional fs.Stats property, a comma, an optional desc or asc, a comma and then an optional limit number (This operates the same way as the SQL LIMIT/TOP clause). Example: grepord -iRl './test' -e 'hello' -sort:birthtimeMs,asc,1

Release Steps

  • npm run test
  • Update package.json version
  • npm run build-man
  • Push updates
  • npm run release

Source Code

  • index.js
  • test.mjs

Keywords

FAQs

Package last updated on 26 Nov 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

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