0.2.1 • Published 4 years ago

@cap32/nut v0.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

nut

Numbering textarea

screenshot

Usage

Basic usage

<body>
  <!-- textarea element with class="nut" is required -->
  <textarea class="nut"></textarea>

  <!-- import nut.js at the bottom of body -->
  <script src="https://unpkg.com/@cap32/nut@0.1.0/dist/nut.js"></script>
</body>

I think it could not be easier.

Supported data attributes

<textarea
  class="nut"
  data-nut-width="64px"
  data-nut-padding="8px"
  data-nut-color="#666"
  data-nut-bg-color="#f4f4f4"
></textarea>

Installing via npm

$ npm install @cap32/nut

License

MIT