https://github.com/khalyomede/fang-save
Save your files into the desired folder.
https://github.com/khalyomede/fang-save
fang-plugin folder save
Last synced: 3 months ago
JSON representation
Save your files into the desired folder.
- Host: GitHub
- URL: https://github.com/khalyomede/fang-save
- Owner: khalyomede
- Created: 2020-01-17T19:58:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T05:16:45.000Z (over 2 years ago)
- Last Synced: 2025-03-15T03:47:37.646Z (3 months ago)
- Topics: fang-plugin, folder, save
- Language: JavaScript
- Homepage: https://npmjs.com/package/@fang/save
- Size: 1.37 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# fang-save
Save your files into the desired folder.
[](https://npmjs.com/package/@fang/save)    
## Summary
- [About](#about)
- [Requirements](#requirements)
- [Installation](#installation)
- [Examples](#examples)
- [Changelog](CHANGELOG.md)## About
I created this plugin to have an official package to save files in a desired folder. As I consider saving files to another location to be a basic task, I wanted people to find an official plugin for that.
Feel free to seek for other packages that save files, to compare in term of features and speed of execution.
## Requirements
Having [`@fang/core`](https://npmjs.com/package/@fang/core) installed on version `0.*`.
## Installation
Using NPM: `npm install --save-dev @fang/save`.
Using Yarn: `yarn add --dev @fang/save`.## Examples
- [1. Save your files into the desired folder](#1-save-your-files-into-the-desired-folder)
### 1. Save your files into the desired folder
```javascript
// yourfile.js
const { run } = require("@fang/core");
const save = require("@fang/save");const js = {
name: "js",
input: "example/index.js",
tasks: [
save({
folder: "example/dist/js",
}),
],
};const main = async () => await run([js]);
main();
``````bash
$ node yourfile.js
fang: start
8 CPUs core(s)
1 tasks to run
js: start
js: 13.039ms
fang: 110.063ms
```