GROWI Commons Libraries

path-utils

An utility object provides functions working with GROWI page path.

Usage:

// import
import { pathUtils } from 'growi-commons`;
// require
const { pathUtils } = require('growi-commons);

> show detail

custom-tag-utils

An utility object provides functions and classes for custom tags with syntax like $lsx(/).

Usage:

// import
import { customTagUtils } from 'growi-commons`;
// require
const { customTagUtils } = require('growi-commons);

> show detail

customTagUtils.TagContext

TagContext class is provided by a property of customTagUtils.

Usage:

const { TagContext } = customTagUtils;

> show detail

customTagUtils.ArgsParser

ArgsParser class is provided by a property of customTagUtils.

Usage:

const { ArgsParser } = customTagUtils;

> show detail

customTagUtils.OptionParser

OptionParser class is provided by a property of customTagUtils.

Usage:

const { OptionParser } = customTagUtils;

> show detail

basic-interceptor

BasicInterceptor class is provided by basic-interceptor module.

Usage:

// import
import { BasicInterceptor } from 'growi-commons`;
// require
const { BasicInterceptor } = require('growi-commons);

> show detail

LocalStorageManager

Usage:

// import
import { LocalStorageManager } from 'growi-commons`;
// require
const { LocalStorageManager } = require('growi-commons);

// get the singleton instance
const localStorageManager = LocalStorageManager.getInstance();

> (TBD) show detail

Last Updated: 5/1/2019, 11:06:42 AM