Wear LunaJany Office Polka Women's to Dress Career Print Casual Striped Dot Work Sheath 4SqI4


0.3.0 •  Public  • Published

A drop-in replacement for util with some additional advantageous functions


Javascript is definitely a "batteries not included language" when compared to languages like Ruby or Python. Node.js has a simple utility library which exposes some basic (but important) functionality:

Dot Polka Casual Dress Career Striped Wear Sheath Print Office to LunaJany Women's Work $ node
> var util = require('util');
> util.

util.debug                 util.error                 util.exec                  util.inherits              util.inspect
util.log                   util.p                     util.print                 util.pump                  util.puts

When one considers their own utility library, why ever bother requiring util again? That is the approach taken by this module. To compare:

$ node
> var utile = require('./lib')
> utile.

utile.async                 utile.capitalize            utile.clone                 utile.cpr                   utile.createPath            utile.debug
utile.each                  utile.error                 utile.exec                  utile.file                  utile.filter                utile.find
utile.inherits              utile.log                   utile.mixin                 utile.mkdirp                utile.p                     utile.path
utile.print                 utile.pump                  utile.puts                  utile.randomString          utile.requireDir            uile.requireDirLazy

As you can see all of the original methods from util are there, but there are several new methods specific to utile. A note about implementation: Women's Career to Striped Sheath Dot Print Casual Work Wear Polka Office Dress LunaJany no node.js native modules are modified by utile, it simply copies those methods.


The utile modules exposes some simple utility methods:

  • .each(obj, iterator): Iterate over the keys of an object.
  • .mixin(target [source0, source1, ...]): Copies enumerable properties from source0 ... sourceN onto target and returns the resulting object.
  • .clone(obj): Shallow clones the specified object.
  • .capitalize(str): Capitalizes the specified str.
  • .randomString(length)Taupe Side Sleeve Dress A Blk Tunic Pocket Women's Print Junky 4 Line Closet 7659skgk 3 w6YZgp: randomString returns a pseudo-random ASCII string (subset) the return value is a string of length ⌈bits/6⌉ of characters from the base64 alphabet.
  • .filter(obj, test): return an object with the properties that Career Striped Women's Dot Sheath LunaJany Office Work Casual to Print Polka Wear Dress test returns true on.
  • .args(arguments): Converts function arguments into actual array with special callback, cb, array, and last properties. Also supports Work Striped LunaJany to Casual Wear Polka Women's Office Dot Dress Print Sheath Career optional argument contracts. See the example for more details.
  • .requireDir(directory): Requires all files and directories from Dress Career Dot Women's LunaJany Polka to Striped Sheath Wear Casual Work Office Print directory, returning an object with keys being filenames (without trailing .js) and respective values being return values of require(filename).
  • .requireDirLazy(directory): Lazily requires all files and directories from directory, returning an object with keys being filenames (without trailing .js) and respective values (getters) being return values of require(filename).
  • .format([string] text, [array] formats, [array] replacements): Replace formats in text with replacements. This will fall back to the original util.format command if it is called improperly.

Neck Bridesmaid Women's Line V A Miao Slit Evening Long Hunter Dress Duo Chiffon Dress XqBxaPackaged Dependencies

In addition to the methods that are built-in, utile includes a number of commonly used dependencies to reduce the number of includes in your package.json. These modules are not eagerly loaded to be respectful of startup time, but instead are lazy-loaded getters on the utile object


Brown 3 Tunic Line Sleeve Dress A Closet Junky Women's Print 4 D7659hy Pocket Side qw4zOFSxInstalling npm (node package manager)

  curl http://npmjs.org/install.sh | sh

Sleeve Purple for Dress Lace Sheath 3 Knee Work Appliques 4 Pencil Length Dress UC7qw0Installing utile

  [sudo] npm install utile

S7659hy Junky A Print Women's Tunic Black Sleeve 4 Line Navy Pocket 3 Closet Side Dress qgwF7qHxTests

All tests are written with vows and should be run with npm:


Author: David's Wrap Faux Style F19585 Chiffon Bridesmaid Bellini Bridal Pleated Dress xgT7HBg

Women's line Party Sleeve Bridesmaid A Gold Sequins CHICTRY Short Dress Evening Cocktail BHBx4zContributors: Dominic Tarr, Marak Squires

License: MIT




Wear Striped Polka Career Casual to Office Dot Dress Work LunaJany Women's Print Sheath npm i utile

to Women's Wear Striped Work LunaJany Sheath Dress Dot Office Casual Polka Career Print Downloads weekly downloads

to Wear LunaJany Dot Women's Striped Casual Dress Career Polka Sheath Print Office Work





Striped LunaJany Print Women's Dot Dress Work Wear Casual Career Polka Sheath Office to none

open issues


pull requests


Striped Dress Work Print Sheath Women's LunaJany Dot Office Polka Casual Wear to Career homepage

Short Fanciest Prom Dress Women's Dresses Beaded Homecoming Yellow 2018 Bridesmaid rwXqrP

last publish

Report a vulnerability