@cap32/nut

line numbering textarea

Usage no npm install needed!

<script type="module">
  import cap32Nut from 'https://cdn.skypack.dev/@cap32/nut';
</script>

README

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