map.stringify

1.0.0 • Public • Published

map.stringify

a simple parser and stringifier for ES6 maps

// first require the module
require("map.stringify");
// then you stringify and parse maps
const myMap = new Map([["a", "b"]]);
const stringified = Map.stringify(myMap);
console.log(stringified);
const parsed = Map.parse(stringified);
console.log(parsed);

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i map.stringify

      Weekly Downloads

      1

      Version

      1.0.0

      License

      MIT

      Unpacked Size

      971 B

      Total Files

      3

      Last publish

      Collaborators

      • dada513