New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

laren

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laren

Command line tool for renaming files with custom function expression

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

laren

Travis CI Build Status

Command line tool for renaming files with custom function expression

Install

NPM

  • Install: npm install --global laren
  • Executable: laren

Usage

laren <pattern> [function] <options>

[pattern]

This is a glob pattern.

[function]

The function parameter take 2 argument, filename and the index. You can write any function that you want. In the current version, the function is an optional argument. If any function provided by args, that will be used in files. If you don't give the function you have to type in terminal with an :exit (see example below).

Options

-t --test

Run script in test mode. No modify the files but print out the matches and names. If you run the command without this switch, the files will be renamed.

Usage example

laren -t ./**/* "(f, i) => 'file' + i"
./filea ==> file0
./fileb ==> file1
./filec ==> file2
Tests done!
laren -t ./**/*
(f,i) => 'file' + i;
:exit
./filea ==> file0
./fileb ==> file1
./filec ==> file2
Tests done!

History

Discover the release history by heading on over to the releases page.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

Contributors

These amazing people have contributed code to this project:

License

Unless stated otherwise all works are:

and licensed under:

Keywords

FAQs

Package last updated on 16 Dec 2016

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