Skip to content

Commit

Permalink
Merge pull request #8 from shgysk8zer0/feature/cjs
Browse files Browse the repository at this point in the history
Add CommonJS versions of modules
  • Loading branch information
shgysk8zer0 authored Oct 1, 2023
2 parents b550fbb + 22d15a3 commit 970f327
Show file tree
Hide file tree
Showing 7 changed files with 419 additions and 8 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ importmap.yaml
*.min.*
*.map
.env
.gitkeep
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v1.0.7] - 2023-10-01

### Added
- Add CommonJS versions of modules
- Add main module for `import '@shgysk8zer0/consts` and `require('@shgysk8zer0/consts')`

## [v1.0.6] - 2023-09-26

### Fixed
Expand Down
Empty file added cjs/.gitkeep
Empty file.
12 changes: 12 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import * as MIMES from '@shgysk8zer0/consts/mimes.js';
import * as EXTS from '@shgysk8zer0/consts/exts.js';
import * as STATUS from '@shgysk8zer0/consts/status.js';
import * as STATUS_TEXT from '@shgysk8zer0/consts/status-text.js';
import { SECONDS, MINUTES, HOURS, DAYS, WEEKS, YEARS, days as DAY_CONSTS } from '@shgysk8zer0/consts/date.js';
export * as NAMESPACES from '@shgysk8zer0/consts/namespaces.js';
export * as STATES from '@shgysk8zer0/consts/states.js';

export const HTTP = { STATUS, STATUS_TEXT };
export const FILE = { MIMES, EXTS };
export const DURATION = { SECONDS, MINUTES, HOURS, DAYS, WEEKS, YEARS };
export { DAY_CONSTS };
Loading

0 comments on commit 970f327

Please sign in to comment.