Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-filepath-mv
Filepath rename for next.
https://github.com/afeiship/next-filepath-mv
basename dirname extname file filepath mv rename
Last synced: 20 days ago
JSON representation
Filepath rename for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-filepath-mv
- Owner: afeiship
- License: mit
- Created: 2016-10-19T07:37:11.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-14T09:49:05.000Z (over 3 years ago)
- Last Synced: 2024-10-28T07:30:34.319Z (2 months ago)
- Topics: basename, dirname, extname, file, filepath, mv, rename
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-filepath-mv
> Filepath rename for next.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-filepath-mv
```## usage
```js
import '@jswork/next-filepath-mv';nx.filepathMv('/var/lib/nginx/tmp/test.txt',(obj)=>{
obj.prefix = 'pre_';
obj.suffix = '_suf';
obj.name = 'test123';
return obj;
});// /var/lib/nginx/tmp/pre_test123_suf.txt
```## license
Code released under [the MIT license](https://github.com/afeiship/next-filepath-mv/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-filepath-mv
[version-url]: https://npmjs.org/package/@jswork/next-filepath-mv[license-image]: https://img.shields.io/npm/l/@jswork/next-filepath-mv
[license-url]: https://github.com/afeiship/next-filepath-mv/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-filepath-mv
[size-url]: https://github.com/afeiship/next-filepath-mv/blob/master/dist/next-filepath-mv.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-filepath-mv
[download-url]: https://www.npmjs.com/package/@jswork/next-filepath-mv