Skip to content

stagas/json-objectify

Repository files navigation

json-objectify

Like JSON.stringify but without the stringify part.

npm i json-objectify pnpm add json-objectify yarn add json-objectify

API

# createContext(asIsCtors)

    # asIsCtors  =  []

      any []

    createContext(asIsCtors)  =>

      {

      # deobjectify

        # (value, reviver, top)

          # value

            any

          # reviver

            Reviver

          # top  =  true

            boolean

          <T>(value, reviver, top)  =>

      # objectify

        # (value, replacer, top)

          # value

            any

          # replacer

            Replacer

          # top  =  true

            boolean

          <T>(value, replacer, top)  =>

      # objectifyAsync

        # (value, replacer, top)

          # value

            any

          # replacer

            Replacer

          # top  =  true

            boolean

          <T>(value, replacer, top)  =>

            Promise<T>

      }

# deobjectify(value, reviver, top)

    # value

      any

    # reviver

      Reviver

    # top  =  true

      boolean

    deobjectify<T>(value, reviver, top)  =>

# objectify(value, replacer, top)

    # value

      any

    # replacer

      Replacer

    # top  =  true

      boolean

    objectify<T>(value, replacer, top)  =>

# objectifyAsync(value, replacer, top)

    # value

      any

    # replacer

      Replacer

    # top  =  true

      boolean

    objectifyAsync<T>(value, replacer, top)  =>

      Promise<T>

Credits

Contributing

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2022 stagas

About

Like JSON.stringify but without the stringify part.

Resources

License

Stars

Watchers

Forks

Packages

No packages published