0.4.1 • Published 12 months ago

@bassist/node-utils v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@bassist/node-utils

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