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

1.0.2-fix • Public • Published

Bracketz - Parse brackets in string

Parse brackets in string with the power of typescript.

Usage

let b = bracketz("Hello [username], you are connected since [login_timestamp]");

console.log(b.args); // [ "username", "login_timestamp" ]
console.log(b({ username: "Nekomancer", login_timestamp: "615245162162414" })); // Hello Nekomancer, you are connected since 615245162162414

Readme

Keywords

none

Package Sidebar

Install

npm i bracketz

Weekly Downloads

2

Version

1.0.2-fix

License

ISC

Unpacked Size

16.2 kB

Total Files

6

Last publish

Collaborators

  • nekowomancer