Cap32 / nut

Line numbering textarea

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Line numbering textarea

License:MIT License


Languages

Language:TypeScript 99.4%Language:JavaScript 0.6%