Package detail

@bassist/node-utils

chengpeiquan196MIT0.4.1

Opinionated collection of common Node.js utils by @chengpeiquan .

utils, node utils, file system utils, file utils

readme

@bassist/node-utils

GitHub stars

Opinionated collection of common Node.js utils by @chengpeiquan .

  • 🌳 Fully tree shakeable
  • 💪 Type Strong
  • ⚡ Simplify complex operations
  • 🚀 Built-in fs-extra

Note: This package is only for use in Node.js, don't use it in the browser.

Usage

With npm(or yarn, or pnpm):

npm install @bassist/node-utils

In .js / .ts or other files:

import { getPackageManagerByUserAgent } from '@bassist/node-utils'

console.log(getPackageManagerByUserAgent())
// { name: 'pnpm', version: '7.26.0' }

Documentation

See: Documentation of node-utils

About fs API, see: fs-extra .

Release Notes

Please refer to CHANGELOG for details.

License

MIT License © 2022-PRESENT chengpeiquan