Returns whether provided number is even
JSON.parse with context information on error
Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.
A fast and easy to use JSON Schema validator
Robustly get the byte offset of a Typed Array
Robustly get the byte length of a Typed Array
tar for node
Check if stdout or stderr is interactive
Robustly get the length of a Typed Array
when you want to fire an event no matter how a process exits.
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
A tiny JSON logger
The modular and type safe schema library for validating structural data
Conversion of JavaScript primitives to and from Buffer with binary order matching natural primitive order
Cross Platform Smart Fetch Ponyfill
No description provided.
A mutex for guarding async workflows
Deduplication tool for yarn.lock files
A robust Punycode converter that fully complies to RFC 3492 and RFC 5891, and works on nearly all JavaScript platforms.
A JavaScript library that breaks strings into their individual user-perceived characters (including emojis!)
ES spec-like internal slots
Fetch-based http client for use with npm registry APIs
two functions: One that returns true, one that returns false
Tiny helper to prevent blocking Node.js event loop
This is a simple module-level registry for application globals. Use it to wrap global connection pools, memcached connections, redis, even database connections, and register them within a top-level namespace module of your application. For example, instead of doing Rails.cache you could be doing MyApp.rails_cache or MyApp.redis_cache, etc.
`Vigorous testing is coincise` This gem allows coincise testing, even shorter than doctest. It also adds minimal overhead to your file! See the documentation for examples.
Provides API for building response based on ActiveRecord::Relation objects (json, csv, even using custom view builder). It makes much easier to fetch information from database for displaying it for example using JavaScript MV* based frameworks (such as Knockout, Backbone, Angular, etc), in csv format or even with any custom format. Tags: json, csv, grid, api, grid builder, activerecord relation builder, relation
A simple class method wrapper, which allow to serialize method return value and arguments. It can be use for ‘mocking’ or ‘caching’ or benchmarking or even as a nice example of practical Ruby meta-programming.
EncodingSampler helps solve the problem of what to do when the character encoding is unknown, for example when a user is uploading a file but has no idea of its encoding (or typically, even what "character encoding" means.) EncodingSampler extracts a concise set of samples from the selected file for display so the user can choose wisely.
The ultimate Ruby developer tool. This gem scrapes Ruby documentation for quick referencing. Search or browse full documentation for classes, modules and/or methods. Including syntax examples, source Code, and even source links. Have a query? Run, Hunt, and Done. Never lose momentum, keep all things in your line of sight, and get right back to coding!
Manacle will allow you to attach constraints to your objects that will persist across new instances of similar objects. As an example, you can constrain a Time object to always advance to the next hour. Then, if you add even one minute to that Time, it will snap to the next hour.
OpenSCAD - a cad language for creating solid 3d objects, useful for CNC and 3D Printing, is incredibly annoying. It doesn't even support variables! Oozby is a markup builder like Markaby or XML Builder, so you can write OpenSCAD programs in Ruby. It also patches in a bunch of really nice features which make programming objects much more fun. Check out the Readme and examples folder for some demos of what this tool can do!
Quickly bundle any Ruby libraries into a RubyGem and share it with the world, your colleagues, or perhaps just with yourself amongst your projects. RubyGems are centrally stored, versioned, and support dependencies between other gems, so they are the ultimate way to bundle libraries, executables, associated tests, examples, and more. Within this gem, you get one thing - <code>newgem</code> - an executable to create your own gems. Your new gems will include designated folders for Ruby code, test files, executables, and even a default website page for you to explain your project, and which instantly uploads to RubyForge website (which looks just like this one by default)
== Synopsys <code>Enumerable#filter</code> - extended <code>Enumerable#select</code> == Examples String filter (acts like <code>Enumerable#grep</code>): [1, 2, 3, 'ab'].filter(/a/) # => ['ab'] [1, 2, 3, '3'].filter('3') # => ['3'] You can pass a <code>Proc</code> or <code>Symbol</code>. Methods and blocks are allowed too: [1, 2, 3].filter(&:even?) # => [2] [1, 2, 3].filter(:even?) # => [2] [1, 2, 4].filter { |num| num.even? } # => [2, 4] <code>Enumerable#filter</code> can match against enumerable items attributes. Like this: [1, 2, 3, 4.2].filter :to_i => :even? # => [2, 4] If the block is supplied, each matching element is passed to it, and the block's result is stored in the output array. [1, 2, 4].filter(&:even?) { |n| n + 1 } # => [3, 5] <code>Enumerable#filter</code> also accepts <code>true</code> or <code>false</code> as argument: [0, false, 2, nil].filter(true) # => [0, 2] [0, false, 2, nil].filter(false) # => [false, nil] <code>Enumerable#filter</code> also supports <code>OR</code> operator! Just pass many patterns, they will be joined together with <code>OR</code> operator. [0, 2, 3, 4].filter(:zero?, :odd?) # => [0, 3]
`fingerpuppet` is a simple library and commandline tool to interact with Puppet's REST API without needing to have Puppet itself installed. This may be integrated, for example, into a provisioning tool to allow your provisioning process to remotely sign certificates of newly built systems. Alternatively, you could use it to request known facts about a node from your Puppet Master, or even to request a catalog for a node to, for example, perform acceptance testing against a new version of Puppet before upgrading your production master. Install the binford2k/fingerpuppet puppet module to get a class that can automatically configure your `auth.conf` file under Puppet Enterprise, where that file is managed.
One extends standard I18n so that you could store your translations in a Comma-Separated Value files (CSV) in a key-value manner, where the key is a word or a phrase or even a poem if you wish. No limits here (except be aware to escape symbols so the CSV format is kept). And the value is the same text as the key but translated to a language, specified by a file name you are using (for example, you could write one line to a sp.csv file: `"hello!","hola!"` and use `t 'hello!'` with a spanish locale to get the "hola!" text).