Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

nojs

Library that helps minimize js you have to write

frontend-web, frontend, dom, dom-manipulation, no-js, nojs, no.js, no-javascript

readme

No.js

No.js is an extremely lightweight javascript library that makes you do DOM manipulations without writing any javascript at all. All you'll need to add are html attributes instead and No.js does the magic for you.

No.js logo

INSTALLATION

npm install nojs

or download here

Then link it to the bottom of your web page like so:

<body>
...
<script src="<PATH TO LIBRARY>/nojs/dist/no.min.js"></script>
</body>

or you can link directly to the remote distribution like so:

<body>
...
<script src="http://nojs.io/release/0.1.1/no.min.js"></script>
</body>

USAGE

Please view the Documentation for elaborate examples and usage.

License

MIT

changelog

0.1.3 / 2019-02-07

  • update self check (truth and false) on every loop iteration
  • fix property value and property name detection

0.1.2 / 2019-02-07

  • Add support for triggers
    • on-[eventType]-trigger-click="[target]"
    • on-[eventType]-trigger-focus="[target]"
    • on-[eventType]-trigger-blur="[target]"
    • on-[eventType]-trigger-scrollIntoView="[target]"

0.1.1 / 2017-04-26

  • Mangle variables in dist file for lighter file size.

0.1.0 / 2017-04-23

  • Single dash support
  • Support for new signatures
    • on-[eventType]-switch-class="[target] [className]"
    • on-[eventType]-set-class="[target] [className]"
    • on-[eventType]-toggle-class="[target] [className]"
    • on-[eventType]-switch-class="[target] [className]"
    • on-[eventType]-set-value="[form input target] [value]"
    • on-[eventType]-reset-value="[form input target]"
    • on-[eventType]-set-text="[target] [textValue]"

0.0.5 / 2017-03-06

  • Initial release