Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@bassist/node-utils

chengpeiquan98MIT0.4.1TypeScript support: included

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

utils, node utils, file system utils, file utils, fs utils, fs extra

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