2.0.1 • Published 2 years ago
@vmoe/node-utils v2.0.1
node utils
Common and useful Node.js utils of Best Practice in pure ESM, especially when developing node scripts.
Installation
npm
npm install @vmoe/node-utils
pnpm
pnpm add @vmoe/node-utils
Usage
Built-in utils
import { base64, time, deepClone, logWithTime } from '@vmoe/node-utils'
import fs from '@vmoe/node-utils/fs'
const en = base64.encode('Hello World')
logWithTime(en)
const _obj = [{ name: 'node-utils' }]
const obj = deepClone(_obj)
_obj[0].name = 'oops'
await fs.writeFile('./demo.txt', time() + en + JSON.stringify(obj))
External Modules (tree shaking support)
import { request } from '@vmoe/node-utils/axios'
import { cron } from '@vmoe/node-utils/cron'
import { execa } from '@vmoe/node-utils/execa'
import { globby } from '@vmoe/node-utils/globby'
import { loading } from '@vmoe/node-utils/ora'
see modules folder for all external modules.
License
MIT License © 2023-PRESENT Viki
2.0.1
2 years ago
2.0.0-rc.7
2 years ago
2.0.0-rc.6
2 years ago
2.0.0-rc.5
2 years ago
2.0.0-rc.4
2 years ago
2.0.0-rc.3
2 years ago
2.0.0-rc.2
2 years ago
2.0.0-rc.1
2 years ago
1.4.0
2 years ago
1.3.2
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.0
2 years ago
1.0.0
2 years ago