Skip to content

the-rev-dev/rev-strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

The rev-strings package is a library to facilitate string composition and interpretation.

Capabilities

  • includes common regex patterns (phone, zip, etc)
  • quickly compose query strings on the fly

Table of Contents

Getting Started

Install

$ npm install rev-strings

Usage Example

Suppose we have a UI that needs to append an object as a query string.

import { rStrings } from 'rev-strings';

const query = { userId: 12 };
const result = rStrings.toQueryString(query);

// result = "?userId=12"

About

String composition, interpretation, and validation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published