SBG Utility is a collection of helper functions and modules primarily designed to support the `static-blog-generator` ecosystem. It provides functionalities such as file management (reading, writing, checking file stats), date mapping, and logging utilities. The current stable version is `2.0.11`. As a sub-package within a larger monorepo, its release cadence is tied to the main project, though specific updates for `sbg-utility` are less frequent. Key differentiators include its tight integration with the `static-blog-generator`'s internal workings and its CommonJS base with TypeScript type definitions, making it usable in both legacy and modern Node.js environments.
npm install sbg-utilityVerified import paths — ran on the pinned version, not inferred.
Demonstrates reading from and writing to files using `sbg-utility`'s file manager functions, along with logging capabilities.
For CommonJS environments, explicitly use `const { func } = require('sbg-utility');`. For modern TypeScript/ESM projects, ensure your `tsconfig.json` and build tools (like Webpack, Rollup, esbuild) are configured to correctly handle CommonJS dependencies.Review the GitHub repository and source code for the `static-blog-generator` project to understand the full context and intended usage of these utilities, especially for advanced or less documented features.
Ensure you are using correct named imports for ESM (`import { someFunction } from 'sbg-utility';`) or proper destructuring for CommonJS (`const { someFunction } = require('sbg-utility');`). This package does not have a default export.Ensure that the module causing the error is loaded via `import` if it's an ES module. For `sbg-utility`, stick to `import` in TypeScript/ESM contexts or `require` in CJS contexts, respecting its underlying module type.
No dependency data recorded yet.