Skip to content

smujmaiku/body-meta

Repository files navigation

Body Meta

Lets store data in description fields. Because we don't have a better place to put them.

{
    "body": "Big description of\nsomething",
    "string": "data",
    "number": 123
}

Becomes:

Big description of
something

string: "data"
number: 123

Installation

npm i smujmaiku/body-meta

Methods

encode

Encodes an Object into a single string placing the body value on top

decode

Decodes a string into a single Object

License

Copyright (c) 2021, Michael Szmadzinski. (MIT License)

About

Lets store data in description fields

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published