@haxtheweb/word-count
Version:
Automated conversion of word-count/
39 lines (26 loc) • 1 kB
Markdown
# <word-count>
Count
> Counts the words in the slotted text and provides a small text badge
## Usage
To use this web component in your project you can utilize one of the following styles of syntax.
```js
/* In an existing module / web component */
import '@haxtheweb/word-count/word-count.js';
<script type="module">
import '@haxtheweb/word-count/word-count.js';
</script>
```
## Develop / Demo
Running `npm start` will start a local development server and open your default browser to display it. It will start watching *.js and lib/*.js files for changes automatically for your demo.
```bash
$ npm start
```
## Contributing
1. Fork it! `git clone git@github.com/haxtheweb/webcomponents.git`
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
Count
## License
[Apache-2.0 License](http://opensource.org/licenses/Apache-2.0)