Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zkochan/link-dir
- Owner: zkochan
- License: mit
- Created: 2016-10-22T11:37:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-04T17:37:31.000Z (over 7 years ago)
- Last Synced: 2024-11-25T08:33:19.226Z (28 days ago)
- Language: TypeScript
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)