transform a stream into a quoted string
JavaScript regular expression for matching a quoted string.
Generate a js string safely, that defaults to a single quoted string
npm package that allows to split a string by spaces, but bypassing quoted content
An email validator including quoted string for local part
nv-buf-quote ======================= - read quoted-string AND \r\n FROM a bigfile
Split a string by space and ignore space in quoted string.
return the github url from a package.json file
Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible
compare two semver version strings, returning -1, 0, or 1
type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.
extend like a boss
borderless text tables with alignment
delegate methods and accessors to another property
CLI arguments parser. Native port of python's argparse.
A library of cross-platform tested terminal/console command strings for doing things like color and cursor positioning. This is a subset of both ansi and vt100. All control codes included work on both Windows & Unix-like OSes, except where noted.
Promisifies all the selected functions in an object
Get the command from a shebang
Remove duplicate values from an array. Fastest ES5 implementation.
A simple in-memory filesystem. Holds data in a javascript object.
Port of C's wcwidth() and wcswidth()
Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
Resolve the path of a module like `require.resolve()` but from a given path
JSON.parse with bigints support
Specification independent utilities to handle quoted strings (in Mail, MIME types, ..)
Quoted string parser for grammar defined in RFC3261
Parser for M3U8 Playlist format as defined in HLS draft-pantos-hls-rfc8216
utils for writing media-type parsers (char lookup table, Quted String Spec, ...)
Fast YAML linter inspired by yamllint
IMAP4rev1 protocol parser, response formatter, and sequence-set helpers (RFC 3501) — zero I/O.
YAML linter with rich diagnostics
Turn a .http specs file into a real HTTP server, backed by the shell commands you already have.
ICAP client and server crate
Extract the essence of your logs — compress repetitive lines while preserving all unique information
[mail-api] _internal_ parts for the mail-api crates
[mail-api] _internal_ parts for the mail-api crates
Quoting/unquoting of strings, including escaping
Collapse quoted strings in strings
Wraps and unwraps strings with quotes
Improves typography (quotes, hyphens, etc.) of a given string. Works well with I18n.
simple token parser
Generic library to parse GMail-style search strings for keyword/value pairs; supports definition of valid keywords and handling of quoted values.
CSV generator with ensuring string fields quoted
== FEATURES/PROBLEMS: * Partial string matching * The algorithm is not particularly performant == SYNOPSIS: require 'goto_string' s = %w(goto_string is a small library that implements a substring matching and ranking algorithm. The matching and ranking is similar to that found in Quicksilver or TextMate) GotoString::Matcher.match('string', s) #=> [["goto_string", "goto_string", 0.679259259259259, [["string", 5]]], ["substring", "substring", 0.461481481481481, [["s", 0], ["tring", 4]]]] An array is returned which contains one entry for each match. Matches are ordered by rank. Each match is itself an array, containing the following elements: [ "original candidate", "matched string", rank, [["substring_1", offset], ["substring_2", offset], ... ] ] You can optionally pass a block to the match method which will get each candidate passed to it. The return value of the block is what will be used for matching. This is so you can pass in arrays of complex objects as candidates: GotoString::Matcher.match( "goto", Project.find(:all) ) do |p| p.name end The resulting matches will contain a reference to the matched string (the project name) as well as the project (the original candidate) == REQUIREMENTS: * None
String open classed with AES-256 and RSA encryption and zipping methods for easy, secure, encryption of strings. The string_encryption gem was started with the intention of being compatible with the RSA and AES algorithms used in a javascript library on http://www.pidder.com/pidcrypt . Usage and testing against the pidcrypt library hasn't been done yet, but is scheduled for the future. The intent of this library is to make encryption and decryption of a string as straight forward as capitalizing or reversing is. To encrypt a string: encrypted_secret = "Super Secret Text".encrypt("Super Secret Password") To decrypt a string: decrypted_secret = encrypted_secret.encrypt("Super Secret Password") Branden Giacoletto
Generic library to parse GMail-style search strings for keyword/value pairs; supports definition of valid keywords and handling of quoted values.
Provides SMTP STARTTLS support for Ruby 1.8.6 (built-in for 1.8.7+). Simply require 'smtp_tls' and use the Net::SMTP#enable_starttls method to talk to servers that use STARTTLS. require 'net/smtp' begin require 'smtp_tls' rescue LoadError end smtp = Net::SMTP.new address, port smtp.enable_starttls smtp.start Socket.gethostname, user, password, authentication do |server| server.send_message message, from, to end You can also test your SMTP connection settings using mail_smtp_tls: $ date | ruby -Ilib bin/mail_smtp_tls smtp.example.com submission \ "your username" "your password" plain \ from@example.com to@example.com Using SMTP_TLS 1.0.3 -> "220 smtp.example.com ESMTP XXX\r\n" <- "EHLO you.example.com\r\n" -> "250-smtp.example.com at your service, [192.0.2.1]\r\n" -> "250-SIZE 35651584\r\n" -> "250-8BITMIME\r\n" -> "250-STARTTLS\r\n" -> "250-ENHANCEDSTATUSCODES\r\n" -> "250 PIPELINING\r\n" <- "STARTTLS\r\n" -> "220 2.0.0 Ready to start TLS\r\n" TLS connection started <- "EHLO you.example.com\r\n" -> "250-smtp.example.com at your service, [192.0.2.1]\r\n" -> "250-SIZE 35651584\r\n" -> "250-8BITMIME\r\n" -> "250-AUTH LOGIN PLAIN\r\n" -> "250-ENHANCEDSTATUSCODES\r\n" -> "250 PIPELINING\r\n" <- "AUTH PLAIN BASE64_STUFF_HERE\r\n" -> "235 2.7.0 Accepted\r\n" <- "MAIL FROM:<from@example.com>\r\n" -> "250 2.1.0 OK XXX\r\n" <- "RCPT TO:<to@example.com>\r\n" -> "250 2.1.5 OK XXX\r\n" <- "DATA\r\n" -> "354 Go ahead XXX\r\n" writing message from String wrote 91 bytes -> "250 2.0.0 OK 1247028988 XXX\r\n" <- "QUIT\r\n" -> "221 2.0.0 closing connection XXX\r\n" This will connect to smtp.example.com using the submission port (port 587) with a username and password of "your username" and "your password" and authenticate using plain-text auth (the submission port always uses SSL) then send the current date to to@example.com from from@example.com. Debug output from the connection will be printed on stderr.
PythonConfig is a module with classes for parsing and writing Python configuration files created by the ConfigParser classes in Python. These files are structured like this: [Section Name] key = value otherkey: othervalue [Other Section] key: value3 otherkey = value4 Leading whitespace before values are trimmed, and the key must be the at the start of the line - no leading whitespace there. You can use : or = . Multiline values are supported, as long as the second (or third, etc.) lines start with whitespace: [Section] bigstring: This is a very long string, so I'm not sure I'll be able to fit it on one line, but as long as there is one space before each line, I'm ok. Tabs work too. Also, this class supports interpolation: [Awards] output: Congratulations for winning %(prize)! prize: the lottery Will result in: config.sections["Awards"]["output"] == "Congratulations for winning the lottery!" You can also access the sections with the dot operator, but only with all-lowercase: [Awards] key:value [prizes] lottery=3.2 million config.awards["key"] #=> "value" config.prizes["lottery"] #=> "3.2 million" You can modify any values you want, though to add sections, you should use the add_section method. config.sections["prizes"]["lottery"] = "100 dollars" # someone hit the jackpot config.add_section("Candies") config.candies["green"] = "tasty" When you want to output a configuration, just call its +to_s+ method. File.open("output.ini","w") do |out| out.write config.to_s end
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.