New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ls-view-text-count

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ls-view-text-count

Litespeed.js view component that adds a word counter to your input elements.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

ls-view-text-count

npm npm version Build Status Chat With Us

Litespeed.js view component that adds a word counter to your input elements.

Installation

This package is wrapped as a Litespeed.js component. To use it, you need to init a new Litespeed.js project or use an exisiting Litespeed.js project. To learn more about Litespeed.js Javascript web framework got to the official repository.

Install with NPM:

npm install ls-view-text-count

Install with CDN:

<script src="https://cdn.jsdelivr.net/npm/ls-view-text-count"></script>

Getting Started

When input maxlength attribute is defined, the counter will show remaining chars left until the limit is going to be reached. When no maxlength attribute is set, the counter will just count how many word and chars have been written.

Example 1

Setting with maxlength attribute:

<input type="text" value="Hello World!" maxlength="20" data-ls-text-count />

Result:

<input type="text" value="Hello World!" maxlength="20"><span class="ls-view-text-count">8 / 20</span>

Example 2

Setting without maxlength attribute:

<input type="text" value="Hello World!" data-ls-text-count />

Output:

<input type="text" value="Hello World!"><span class="ls-view-text-count">2 words and 12 chars</span>

Contributing

All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send us a pull request.

For security issues, please email security@appwrite.io instead of posting a public issue in GitHub.

The MIT License (MIT) http://www.opensource.org/licenses/mit-license.php

Keywords

FAQs

Package last updated on 04 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc