Get unlimited public & private packages + team-based management with npm Teams.Learn more »

js-life

1.0.0-beta • Public • Published

Life is a Javascript library for building applications in the browser. It provides element, components, data-binding, routing and utilities out of the box.

Installation

Download via npm or github and upload them into your project

$ npm install js-life

or use CDN

<script src="https://unpkg.com/js-life@0.15.17-beta/dist/life.min.js"></script>

Usage

You can consume life via AMD or CommonJS.

  // CommonJS
  const Life = require('life.js');
 
  // AMD
  require(["life"], function(life) {
    // code goes here
  });
 

Otherwise put the script tag into the body and life will attach to the window object.

 
  <script src="dist/life.js"></script>
 
  // Now you can consume Life
 

Hello World

 
  Life.renderView(
    Life.p('Hello World!'),
    document.body
  )
 
  // <p>Hello World</p>  
 

Documentation

Read the documentation.

Browsersupport

Life is supported by the current browsers.

A list of older versions will come soon.

Contribution

If you have ideas to make life better let me know! I´m thankful for every contribution. 💚

Demo

Here are a few small demos.

Todo-List Component

Input

Basic-Router

Counter

Keywords

Install

npm i js-life

DownloadsWeekly Downloads

71

Version

1.0.0-beta

License

MIT

Unpacked Size

101 kB

Total Files

25

Last publish

Collaborators

  • avatar