@adenta/core
v1.1.1-0
Published
[](https://badge.fury.io/js/%40adenta%2Fcore) [](https://www.npmjs.com/package/@adenta/core) [
📖 Usage
import { logger, loadConfig, getCwd } from '@adenta/core'
// Initialize logger
const log = logger('my-app')
// Load configuration
const config = await loadConfig({
name: 'my-app',
defaults: {
port: 3000
}
})
// Get current working directory
const cwd = getCwd()🛠️ API
Logger
import { logger } from '@adenta/core'
const log = logger('namespace')
log.info('Hello World')
log.error('Something went wrong')Configuration
import { loadConfig } from '@adenta/core'
const config = await loadConfig({
name: 'app-name',
defaults: {
port: 3000,
host: 'localhost'
}
})Environment Utilities
import { getCwd, formatWithOptions } from '@adenta/core'
const cwd = getCwd()
const formatted = formatWithOptions('Hello {name}', { name: 'World' })📚 Documentation
For detailed documentation, visit docs.adenta.dev
🤝 Contributing
Contributions are welcome! Please read our Contributing Guide before submitting pull requests.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🔗 Related Packages
@adenta/cli- Command-line interface tools@adenta/ui- React UI components@adenta/cms- Content management system
📊 Version History
See CHANGELOG.md for a complete list of changes.
Note: This package is part of the Adenta ecosystem. For more information, visit adenta.dev.
