@lou.codes/constants

2.0.3Β β€’Β PublicΒ β€’Β Published

License NPM Version Open Issues Size

πŸ”’ Shared constants and aliases to static methods, values and symbols.

Usage

πŸ“¦ Node

Install @lou.codes/constants as a dependency:

pnpm add @lou.codes/constants
# or
npm install @lou.codes/constants
# or
yarn add @lou.codes/constants

Import it and use it:

import { iterator } from "@lou.codes/constants/Symbol.js";

console.log(iterator); // {}

πŸ¦• Deno

Import @lou.codes/constants using the npm: prefix, and use it directly:

import { iterator } from "npm:@lou.codes/constants/Symbol.js";

console.log(iterator); // {}

🌎 Browser

Import @lou.codes/constants using esm.sh, and use it directly:

<script type="module">
	import { iterator } from "https://esm.sh/@lou.codes/constants/Symbol.js";

	console.log(iterator); // {}
</script>

Useful links

  • πŸ“ Documentation: TypeDoc generated documentation.
  • ⏳ Changelog: List of changes between versions.

Package Sidebar

Install

npm i @lou.codes/constants

Weekly Downloads

96

Version

2.0.3

License

MIT

Unpacked Size

8.24 kB

Total Files

13

Last publish

Collaborators

  • loucyx