• Version 7.2.0
  • Published
  • 119 kB
  • 1 dependency
  • MIT license


npm i telejson
yarn add telejson
pnpm add telejson


A library for teleporting rich data to another place.



function isJSON

isJSON: (input: string) => RegExpMatchArray | null;

    function parse

    parse: (data: string, options?: Partial<Options>) => any;

      function replacer

      replacer: (options: Options) => any;

        function reviver

        reviver: (options: Options) => any;

          function stringify

          stringify: (data: unknown, options?: Partial<Options>) => string;


            interface Options

            interface Options {}

              property allowClass

              allowClass: boolean;

                property allowDate

                allowDate: boolean;

                  property allowError

                  allowError: boolean;

                    property allowFunction

                    allowFunction: boolean;

                      property allowRegExp

                      allowRegExp: boolean;

                        property allowSymbol

                        allowSymbol: boolean;

                          property allowUndefined

                          allowUndefined: boolean;

                            property lazyEval

                            lazyEval: boolean;

                              property maxDepth

                              maxDepth: number;

                                property space

                                space: number | undefined;

                                  Package Files (1)

                                  Dependencies (1)

                                  Dev Dependencies (22)

                                  Peer Dependencies (0)

                                  No peer dependencies.


                                  To add a badge like this badgeto your package's README, use the codes available below.

                                  You may also use to create a custom badge linking to

                                  • Markdown
                                  • HTML
                                    <a href=""><img src="" alt=""></a>