1.0.3 • Published 2 years ago

strncat v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

strncat

NPM Version Action Status License

A port of the strncat C or C++ function.

strncat appends a specified amount of characters from the start of one string to the end of another.

Install

npm install --save strncat

Usage

Usage is very similar to that of the original function.

Javascript

const { strncat } = require("strncat");

let result = strncat("foo", "barman", 3);
// result = "foobar"

Typescript

import { strncat } from "strncat";

let result = strncat("foo", "barman", 3);
// result = "foobar"