Socket
Socket
Sign inDemoInstall

jcommon-node

Package Overview
Dependencies
28
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jcommon-node

JavaScript 常用纯函数工具库


Version published
Maintainers
1
Install size
0.973 MB
Created

Readme

Source

jcommon-node

node 常用纯函数工具库 (当前版本已在项目中使用,后续更新会向前兼容) 持续丰富中...

简介

在日常工作中,会经常用到一些文件处理常用脚本等等函数,虽然大部分只需谷歌/百度一下就能找到,但是大多数都存在着一些问题,于是整理了网上和自己平常用到的工具类,方便大家以后的使用,提升开发效率。

安装

使用

# 安装
$ npm install jcommon-node
# 引入
const { copyDir } = require('jcommon-node')

项目特点

  • 完全的按需引用,我们只导出纯函数
  • 不同于传统 js 工具库导出一整个大模块(moment, utils, ...)
  • 支持 npm 安装方式
  • TypeScript支持

API 目录

  • copyDir 复制目录

API 说明

copyDir

复制目录

wuxh
* @Date: 2021-08-22 16:14:34
* @param {string} src 源目录
* @param {string} dst 目标目录
* @param {boolean} emptyDst 是否清空目标目录,默认false
* @return {*}
* @example: copyDir('./dist', './dist1', true)

建议,交流,推荐,反馈

联系我 wxingheng@outlook.com

Keywords

FAQs

Last updated on 22 Sep 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc