Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gas-buddy/pg-ltree-util
Functions to escape and unescape utf-8 strings to value ltree values in postgresql
https://github.com/gas-buddy/pg-ltree-util
Last synced: about 2 months ago
JSON representation
Functions to escape and unescape utf-8 strings to value ltree values in postgresql
- Host: GitHub
- URL: https://github.com/gas-buddy/pg-ltree-util
- Owner: gas-buddy
- License: mit
- Created: 2017-02-20T02:45:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-31T00:30:35.000Z (over 4 years ago)
- Last Synced: 2024-04-15T00:45:51.805Z (9 months ago)
- Language: JavaScript
- Size: 1.49 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pg-ltree-util
=============[![Greenkeeper badge](https://badges.greenkeeper.io/gas-buddy/pg-ltree-util.svg)](https://greenkeeper.io/)
[![wercker status](https://app.wercker.com/status/466d4529e86acda146110f7bad19388e/s/master "wercker status")](https://app.wercker.com/project/byKey/466d4529e86acda146110f7bad19388e)
[![Coverage Status](https://coveralls.io/repos/github/gas-buddy/pg-ltree-util/badge.svg?branch=master)](https://coveralls.io/github/gas-buddy/pg-ltree-util?branch=master)Functions to escape and unescape utf-8 strings to value ltree values in postgresql.
Usage:
```
import * as ltree from 'pg-ltree-util';
console.log(ltree.escapeName('This is a test'));
// Prints This_20is_20a_20test
console.log(ltree.unescapeName('This_20is_20a_20test'));
// Prints This is a test
```