https://github.com/olsonpm/sort-keys-cjs
Exposes the 'sort-keys' module as a cjs dependency
https://github.com/olsonpm/sort-keys-cjs
Last synced: about 1 year ago
JSON representation
Exposes the 'sort-keys' module as a cjs dependency
- Host: GitHub
- URL: https://github.com/olsonpm/sort-keys-cjs
- Owner: olsonpm
- License: wtfpl
- Created: 2024-04-22T23:15:30.000Z (about 2 years ago)
- Default Branch: dev
- Last Pushed: 2024-04-22T23:18:42.000Z (about 2 years ago)
- Last Synced: 2025-01-20T23:45:27.923Z (over 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
## What is this
A simple cjs wrapper to the [sort-keys](https://github.com/sindresorhus/sort-keys) module
## Why make a wrapper ?
Since version 5 of sort-keys, the module [only supports esm import](https://github.com/sindresorhus/sort-keys/commit/c265d92177cad270e92f0911dc9df13a2a2c0cff).
In order to continue using this module conveniently I decided to wrap it in [fix-esm](https://www.npmjs.com/package/fix-esm).
## Why declare sort-keys as a peer dependency ?
Doing this allows you to decide the version of sort-keys in your project.