Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
native
npm pack <package>alternative
npm pack)npx npm-package-downloader -d -p -o out| // Part of https://github.com/chris-rock/node-crypto-examples | |
| // Nodejs encryption of buffers | |
| var crypto = require('crypto'), | |
| algorithm = 'aes-256-ctr', | |
| password = 'd6F3Efeq'; | |
| var fs = require('fs'); | |
| var zlib = require('zlib'); |
| (function($) { | |
| function getTextWidth($element) { | |
| var tester = $("<div/>").text($element.text()) | |
| .css({ "position": "absolute", "float": "left", "white-space": "nowrap", "visibility": "hidden", "font": $element.css("font"), "text-transform": $element.css("text-transform"), "letter-spacing": $element.css("letter-spacing") }) | |
| .appendTo($element.parent()), | |
| width = tester.innerWidth(); | |
| tester.remove(); | |
| return width; | |
| } |