abcdefghijklmnopqrstuvwxyz

Provides a string variable containing the modern English alphabet ('abcdefghijklmnopqrstuvwxyz'), to reduce typing and mistakes. A lightweight alternative to the `alphabet` package, with a streamlined API.

Usage no npm install needed!

<script type="module">
  import abcdefghijklmnopqrstuvwxyz from 'https://cdn.skypack.dev/abcdefghijklmnopqrstuvwxyz';
</script>

README

abcdefghijklmnopqrstuvwxyz

This package exports a single lower-case 26-character string containing the modern English alphabet, suitable for using as-is, or for safely interpolating, without the need for escaping, into nearly any context. The purpose of this package is to reduce the need for repetitious typing and the risk of typographical errors, and to serve as a lightweight alternative to the alphabet package, with a relatively clean, streamlined API.

Installation

npm install abcdefghijklmnopqrstuvwxyz

Usage

ES6

import { abcdefghijklmnopqrstuvwxyz } from 'abcdefghijklmnopqrstuvwxyz'

console.log(abcdefghijklmnopqrstuvwxyz)
// "abcdefghijklmnopqrstuvwxyz"

CommonJS

const { abcdefghijklmnopqrstuvwxyz } = require('abcdefghijklmnopqrstuvwxyz')

console.log(abcdefghijklmnopqrstuvwxyz)
// "abcdefghijklmnopqrstuvwxyz"

In the browser

Load this file in the browser to gain access to a abcdefghijklmnopqrstuvwxyz global representing the abcdefghijklmnopqrstuvwxyz package.

<script src="https://unpkg.com/abcdefghijklmnopqrstuvwxyz@2/dist/iife/abcdefghijklmnopqrstuvwxyz.js" crossorigin></script>
<script>
  console.log(abcdefghijklmnopqrstuvwxyz)
  // { abcdefghijklmnopqrstuvwxyz: 'abcdefghijklmnopqrstuvwxyz' }
</script>