@cap32/nut
v0.2.1
Published
line numbering textarea
Downloads
2
Readme
nut
Numbering textarea
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/[email protected]/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