strncat
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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"

Package Sidebar

Install

npm i strncat

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

5.76 kB

Total Files

9

Last publish

Collaborators

  • basvandam