@dastagirkhan/populatejs

1.0.0 • Public • Published

populatejs-html-form-made-easy

A pure `javascript` library to populate html form by passing a json data;
(function () {
    // key value pairs where keys are the names of the form element
    populatejs({
        'last_name': 'yoyo',
        'feature': 'claws,scales',
        'sex': 'male',
        'pet-select': 'cat',
        'pet-select-multiple': 'dog,macaw'
    });
})();

Getting started with developent

Clone and install deps

git clone git@github.com:dastagirkhan/populatejs.git
cd populatejs
npm install 
-- modify populate.js --
npm run build (this will create populatejs.min.js)
npm run serve (run example set in index.html)

Package Sidebar

Install

npm i @dastagirkhan/populatejs

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

8.35 kB

Total Files

6

Last publish

Collaborators

  • dastagirkhan