@bassist/node-utils
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

@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

Package Sidebar

Install

npm i @bassist/node-utils

Weekly Downloads

14

Version

0.4.1

License

MIT

Unpacked Size

12.1 kB

Total Files

7

Last publish

Collaborators

  • chengpeiquan