Socket
Book a DemoInstallSign in
Socket

fd-append

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fd-append

append DOM element in a functional way.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

fd-append

Build Status npm version

append DOM element in a functional way.

Installation

npm install fd-append --save

Usage

let append = require('fd-append')
    , elem = require('fd-elem')
    , appendtoBody = append(document.body);

let p = elem('p', 'Meow');

appendtoBody(p);

assert.equal(document.body.lastChild.innerText, 'Meow'); // true.

API

append :: parent -> child

A curried function that takes in:

  • parent -> DOM element to which the child must be appended.

  • child -> DOM element that needs to be appended.

Keywords

fp-dom

FAQs

Package last updated on 14 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts