Module adapter/regexp

Serializes RegExp instances.

import { stringify } from 'json-marshal';
import regexpAdapter from 'json-marshal/adapter/regexp';

stringify(/Old/g, { adapters: [regexpAdapter()] });

Index

Functions