Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

utf7

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utf7

Converts text to and from UTF-7 (RFC 2152 and IMAP)

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
260K
increased by1.67%
Maintainers
1
Weekly downloads
 
Created

What is utf7?

The utf7 npm package provides utilities for encoding and decoding text using the UTF-7 encoding scheme. UTF-7 is a variable-length character encoding that was designed for representing Unicode text using a stream of ASCII characters. It is particularly useful for encoding text in environments that are not 8-bit clean, such as email systems.

What are utf7's main functionalities?

Encoding to UTF-7

This feature allows you to encode a string into UTF-7 format. The provided code sample demonstrates how to encode the string 'Hello, World!' into its UTF-7 representation.

const utf7 = require('utf7');
const encoded = utf7.encode('Hello, World!');
console.log(encoded); // Outputs: 'Hello, World!'

Decoding from UTF-7

This feature allows you to decode a UTF-7 encoded string back into its original form. The provided code sample demonstrates how to decode the UTF-7 encoded string 'Hello, World!' back to 'Hello, World!'.

const utf7 = require('utf7');
const decoded = utf7.decode('Hello, World!');
console.log(decoded); // Outputs: 'Hello, World!'

Other packages similar to utf7

FAQs

Package last updated on 01 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc