prepare
Installation
$ npm install @chengaoyuan/prepare
Usage
import prepare from "@chengaoyuan/prepare";
console.log(prepare(":a#:b")({ a: "abc", b: 2 })); // out: abc#2
console.log(prepare("select * from user where uid=:uid")({ uid: 10 })); // out: select * from user where uid=10
Testing
$ npm test