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

move-to-range

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

move-to-range

Move files to corresponding directories given a range.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

move-to-range

Build Status Current npm package version

Move files to corresponding directories given a range

Installation

npm install --save move-to-range

Usage

const moveToRange = require('move-to-range');

moveToRange('1-4', '.txt');
$ tree
.
├── 1.txt
├── 2.txt
├── 3.txt
├── 4.txt
├── 1
│   └── 1.txt
├── 2
│   └── 2.txt
├── 3
│   └── 3.txt
├── 4
│   └── 4.txt
│ ...

With options:

const moveToRange = require('move-to-range');

moveToRange('1-4', '.txt', {
    destination: 'out'
});
$ tree
.
├── 1.txt
├── 2.txt
├── 3.txt
├── 4.txt
├── out
│   ├── 1
│   │   └── 1.txt
│   ├── 2
│   │   └── 2.txt
│   ├── 3
│   │   └── 3.txt
│   └── 4
│       └── 4.txt
│ ...

Options

PropertyDescriptionDefault
destinationDestination directory""
  • move-to-range-cli - CLI for this module
  • copy-to-range - Copy a file to a range of directories
  • make-dir-range - Make directories from a range of integers

Authors

  • Austin Gordon - Development - GitHub

License

This project is licensed under the MIT License - see the LICENSE file for details

Keywords

mv

FAQs

Package last updated on 26 Nov 2018

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