escape-vcard-property-value

Escape vCard property values.

Usage no npm install needed!

<script type="module">
  import escapeVcardPropertyValue from 'https://cdn.skypack.dev/escape-vcard-property-value';
</script>

README

escape-vcard-property-value

npm Version GitHub License Build Status

Escape vCard property values.

Install

$ npm install escape-vcard-property-value

Usage

var escapeVcardPropertyValue = require('escape-vcard-property-value');

escapeVcardPropertyValue(',');  // > '\,'
escapeVcardPropertyValue(';');  // > '\;'
escapeVcardPropertyValue('\\'); // > '\\'
escapeVcardPropertyValue('\n'); // > '\\n'

Testing

$ npm test

License

The MIT License (Expat). See the license file for details.