Skip to content

substrate-system/constants

Repository files navigation

Constants

tests types module semantic versioning Common Changelog install size gzip size dependencies license

Constants for the frontend.

Contents

Install

npm i -S @substrate-system/constants

API

This exposes ESM and common JS via package.json exports field.

ESM

import '@substrate-system/constants'

Common JS

require('@substrate-system/constants')

Use

JS

import {
    EM_DASH,
    EN_DASH,
    NBSP,
    ELLIPSIS 
} from '@namespace/constants'

pre-built JS

This package exposes minified JS files too. Copy them to a location that is accessible to your web server, then link to them in HTML.

copy

cp ./node_modules/@namespace/constants/dist/module.min.js ./public

HTML

<script type="module" src="./module.min.js"></script>

About

Constants for the frontend

Resources

License

Stars

Watchers

Forks

Packages

No packages published