New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

string-concat

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-concat

Basic package for NodeJS to concatenate string items.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

concat-string

Concatenate string with a single pragmatic function.

Author: Marcos Becerril (based on Chris Cates code).

Installation

npm install string-concat --save

Usage

const stringConcat = require('string-concat');

let result = stringConcat(stringConcat(undefined, "Hello", " ","world"), "!!!", null, undefined);
console.log(result);

// Returns: Hello World!!!

var words = ['one', " ", 'two', " ", 'three', " ", 'four']
let result1 = stringConcat(words, "&&&", ["A", "B"],  [1, [2, 3]]);
console.log(result1);

// Returns 
// one two three four&&&AB123

let result2 = stringConcat(["https",":","//","www."], "google", [".", ["com", "/"]])
console.log(result2);

// Returns 
// https://www.google.com/


Keywords

string-concat

FAQs

Package last updated on 03 Sep 2018

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