JSPM

rot13-transform

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q22976F

ROT-13 cypher implementation using transform stream

Package Exports

  • rot13-transform

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rot13-transform) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ROT-13 Cypher Stream 1.0.0

Implementation of the ROT-13 cypher using streams.

rot13 is a transform stream. You can pipe a readable stream into it and pipe it into a writable stream.

var rot13 = require("rot13-transform");

ReadableStreamString("this is a string")
    .pipe(rot13())
    .pipe(process.stdout);

This prints out guvf vf n fgevat.

rot13 does not transform non-letters. It will only transform A-Z and a-z.

You can decrypt ROT-13 by running it through the cypher again.

ReadableStreamString("this is a string")
    .pipe(rot13())
    .pipe(rot13())
    .pipe(process.stdout);

This prints out this is a string.