Installation
This package contains useful modules that are often used and copied across projects.
sh
npm i @xerius/codey-utils
Version Helper
In order to access the codey-style CDN you need to provide a version to create the appropriate url. This helper helps you extract that from the projects package.json
based on the given package name.
The example below illustrates how to get the version of codey-style
:
js
import { versionHelper } from '@xerius/codey-utils';
import packageJson from '<your-package-location>/package';
...
versionHelper.getVersion(
packageJson,
'@xerius/codey-style'
)
...