0.8.0-dev.3 • Published 6 years ago

morphling v0.8.0-dev.3

Weekly downloads
10
License
MIT
Repository
-
Last release
6 years ago

Morphling

Super easy to use, pure Javascript data filters collection.

WARNING: If you are looking for the morphling for vuejs, I renamed it to vue-morphling. This new library is the NEW vanilla javascript version of morphling. For questions please feel free to contact me.

NOTE: This library is currently in development stage and is not yet ready for production use.

Install

NPM or Yard

npm install morphling

yarn add morphling

CDN

https://unpkg.com/morphling/dist/morphling.js

Apply

Node

import morphling from 'morphling';

HTML

<html>
  <head>
    ...
  </head>
  <body>
    ...
    <!-- Your shits here -->
    ...
    <!-- IMPORTANT: Mophling.js should be imported below here. -->
    <script src="https://unpkg.com/morphling.js/dist/morphling.js"></script>
  </body>
</html>

Use

morphling.uppercase('foo');
// FOO

mophling.reverse('bar');
// rab
<h1 data-morph.uppercase>foo</h1>
<!-- FOO -->

<h1 data-morph.reverse>bar</h1>
<!-- rab -->

API

Filters

capitalize

foo -> Foo

Capitalize the first character of a giver string.

morphling.capitalize('foo'); // -> Foo
<span data-morph.capitalize>foo</span> // -> Foo

Back to top ↑


Made with ❤️ by Jofferson Ramirez Tiquez

0.8.0-dev.3

6 years ago

0.8.0-dev.2

6 years ago

0.8.0-dev.1

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.0.1

7 years ago