make-string
make-string converts all data types to string as JSON.toString.
Installation
npm install make-string
Usage
const makeString = ;; // '25'
Why?
I need to convert the object to string in configurable way like removing curly braces, with single quote, etc. So I created this module. If you face any issues with this module, Free feel to create the issues here.
options
Options can be passed as optional second param to makeString to configure few things.
quotes: "single" | "double" | "no"(no quotes) - "double"(default)braces: "true" | "false" - "true"(default)assignment: "=" (any assignment operator)
How to use
const makeString = ;; // "make-string"; // 'make-string'; // make-string; // '{"package":"make-string"}'; // '"package":"make-string"'; // '{"package"="make-string"}'; // '{package=make-string}'; // '{package=make-string&author=ajay}'