max-characters
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

<max-characters>

max-characters is a web component that will highlight characters that exceed the maximum number of characters. Inspiration taken from exceeding tweet limit from the web.

The project was bootstrapped from the open-wc recommendation.

Installation

yarn add max-characters
# OR 
npm i max-characters

Usage

<script type="module">
  import 'max-characters/max-characters.js';
</script>

<max-characters></max-characters>

Development

Local Demo with web-dev-server

yarn start

To run a local development server that serves the basic demo located in demo/index.html

Linting and formatting

To scan the project for linting and formatting errors, run

yarn lint

To automatically fix linting and formatting errors, run

yarn format

Testing with Web Test Runner

To execute a single test run:

yarn test

To run the tests in interactive watch mode run:

yarn test:watch

Tooling configs

For most of the tools, the configuration is in the package.json to reduce the amount of files in your project.

If you customize the configuration a lot, you can consider moving them to individual files.

Readme

Keywords

none

Package Sidebar

Install

npm i max-characters

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

24.7 kB

Total Files

28

Last publish

Collaborators

  • nickkrantz