sandscape
Create custom escapings
Last updated a year ago by l1lith .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sandscape 
SYNC missed versions from official npm registry.

Sandscape

Create custom escapings :)

Sandscape enables you to create your own escapings for whateve your purpose may be. However be warned, implementing a custom escaping solution should be done with extreme caution, using escaping libraries built for your specific purpose (like a SQL query escaper, a html escaper, w/e) is always a better solution. Sandscape is intended for use cases where such libraries do not exist.

Escaping

The escape export has 3 inputs: The string to sanitize, the array of strings to prefix with the escape character, and the escape character/string itself.

import { escape } from "sandscape" // or const {escape} = require('sandscape')
console.log(escape("hello world", ["o"], "o")) // returns "helloo woorld"

Current Tags

  • 0.0.3                                ...           latest (a year ago)

2 Versions

  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 3
Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |