{"_id":"utf7","_rev":"3793321","name":"utf7","description":"Converts text to and from UTF-7 (RFC 2152 and IMAP)","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"kkaefer","email":"mail@kkaefer.com"}],"time":{"modified":"2025-06-05T10:25:42.000Z","created":"2011-06-12T10:17:28.040Z","1.0.2":"2016-09-01T08:46:16.182Z","1.0.1":"2016-08-31T15:37:42.845Z","1.0.0":"2011-06-12T10:17:28.040Z"},"users":{},"author":{"name":"Konstantin Käfer","email":"kkaefer@gmail.com"},"versions":{"1.0.2":{"name":"utf7","version":"1.0.2","description":"Converts text to and from UTF-7 (RFC 2152 and IMAP)","author":{"name":"Konstantin Käfer","email":"kkaefer@gmail.com"},"licenses":[{"type":"BSD"}],"main":"./utf7","dependencies":{"semver":"~5.3.0"},"devDependencies":{"tape":"~4.6.0"},"scripts":{"test":"tape test/*.js"},"gitHead":"17ff1a6f3b9388522dd7996d33ac48ab78fe1687","_id":"utf7@1.0.2","_shasum":"955f490aae653ba220b9456a0a8776c199360991","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"kkaefer","email":"mail@kkaefer.com"},"dist":{"shasum":"955f490aae653ba220b9456a0a8776c199360991","size":3861,"noattachment":false,"key":"/utf7/-/utf7-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/utf7/download/utf7-1.0.2.tgz"},"maintainers":[{"name":"kkaefer","email":"mail@kkaefer.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/utf7-1.0.2.tgz_1472719574717_0.433583895675838"},"directories":{},"publish_time":1472719576182,"_hasShrinkwrap":false,"_cnpm_publish_time":1472719576182,"_cnpmcore_publish_time":"2021-12-17T09:43:01.453Z"},"1.0.1":{"name":"utf7","version":"1.0.1","description":"Converts text to and from UTF-7 (RFC 2152 and IMAP)","author":{"name":"Konstantin Käfer","email":"kkaefer@gmail.com"},"licenses":[{"type":"BSD"}],"main":"./utf7","devDependencies":{"tape":"~4.6.0"},"scripts":{"test":"tape test/*.js"},"gitHead":"1804ccb4a876fbe2c1ef13c02a83aa65d7a397ed","_id":"utf7@1.0.1","_shasum":"fb0a194cc4521b5327bcc9b59718f0536fb85d6d","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"kkaefer","email":"mail@kkaefer.com"},"dist":{"shasum":"fb0a194cc4521b5327bcc9b59718f0536fb85d6d","size":3850,"noattachment":false,"key":"/utf7/-/utf7-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/utf7/download/utf7-1.0.1.tgz"},"maintainers":[{"name":"kkaefer","email":"mail@kkaefer.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/utf7-1.0.1.tgz_1472657861092_0.7074706710409373"},"directories":{},"publish_time":1472657862845,"_hasShrinkwrap":false,"_cnpm_publish_time":1472657862845,"_cnpmcore_publish_time":"2021-12-17T09:43:01.691Z"},"1.0.0":{"name":"utf7","version":"1.0.0","description":"Converts text to and from UTF-7 (RFC 2152 and IMAP)","author":{"name":"Konstantin Käfer","email":"kkaefer@gmail.com"},"licenses":[{"type:":"BSD"}],"main":"./utf7","devDependencies":{"expresso":"0.7.x"},"dependencies":{},"_id":"utf7@1.0.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"70c895de9d85b8ee7ef5a1fa8e169241c46e72cc","size":3661,"noattachment":false,"key":"/utf7/-/utf7-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/utf7/download/utf7-1.0.0.tgz"},"scripts":{},"directories":{},"publish_time":1307873848040,"maintainers":[{"name":"kkaefer","email":"mail@kkaefer.com"}],"_hasShrinkwrap":false,"_cnpm_publish_time":1307873848040,"_cnpmcore_publish_time":"2021-12-17T09:43:01.884Z"}},"readme":"# UTF-7\n\n[![CircleCI](https://circleci.com/gh/kkaefer/utf7.svg?style=svg)](https://circleci.com/gh/kkaefer/utf7)\n\nEncodes and decodes JavaScript (Unicode/UCS-2) strings to UTF-7 ASCII strings. It supports two modes: UTF-7 as defined in [RFC 2152](http://tools.ietf.org/html/rfc2152) and Modified UTF-7 as defined by the IMAP standard in [RFC 3501, section 5.1.3](http://tools.ietf.org/html/rfc3501#section-5.1.3)\n\n## Usage\n\n**RFC 2152**\n\n```javascript\nvar utf7 = require('utf7');\n\nvar encoded = utf7.encode('Jyväskylä');\nassert.equal('Jyv+AOQ-skyl+AOQ-', encoded);\n\nvar decoded = utf7.decode(encoded);\nassert.equal('Jyväskylä', decoded);\n```\n\nBy default, `.encode()` only encodes the default characeters defined in RFC 2152. To also encode optional characters, use `.encodeAll()` or specify the characters you want to encode as the second argument to `.encode()`.\n\n**IMAP (RFC 3501)**\n\n```javascript\nvar utf7 = require('utf7').imap;\n\nvar encoded = utf7.encode('\"你好\" heißt \"Hallo\"');\nassert.equal('\"&T2BZfQ-\" hei&AN8-t \"Hallo\"', encoded);\n\nvar decoded = utf7.decode(encoded);\nassert.equal('\"你好\" heißt \"Hallo\"', decoded);\n```\n","_attachments":{}}