Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zkochan/link-dir

Cross-platform direcory linking
https://github.com/zkochan/link-dir

Last synced: 10 days ago
JSON representation

Cross-platform direcory linking

Awesome Lists containing this project

README

        

# link-dir

> Link directory

[![npm version](https://img.shields.io/npm/v/link-dir.svg)](https://www.npmjs.com/package/link-dir) [![Build Status](https://img.shields.io/travis/zkochan/link-dir/master.svg)](https://travis-ci.org/zkochan/link-dir) [![Build Status on Windows](https://img.shields.io/appveyor/ci/zkochan/link-dir/master.svg)](https://ci.appveyor.com/project/zkochan/link-dir/branch/master)

Link each file in a directory recursively.

## Installation

```sh
npm i -S link-dir
```

## CLI Usage

```sh
# from -> to
link-dir . node_modules/my-package
```

## API Usage

```js
'use strict'
const linkDir = require('link-dir')
const path = require('path')
const cwd = process.cwd()

linkDir(path.join(cwd, 'src'), path.join(cwd, 'node_modules/src'))
```

## License

[MIT](./LICENSE) © [Zoltan Kochan](http://kochan.io)