Beaded Satin Line Party Gowns V XY007 B Prom Dresses Dresses A Beading Waiting Mini Short Still Neck 2018 Purple style Women's Homecoming wTvPnqZC Beaded Satin Line Party Gowns V XY007 B Prom Dresses Dresses A Beading Waiting Mini Short Still Neck 2018 Purple style Women's Homecoming wTvPnqZC Beaded Satin Line Party Gowns V XY007 B Prom Dresses Dresses A Beading Waiting Mini Short Still Neck 2018 Purple style Women's Homecoming wTvPnqZC Beaded Satin Line Party Gowns V XY007 B Prom Dresses Dresses A Beading Waiting Mini Short Still Neck 2018 Purple style Women's Homecoming wTvPnqZC Beaded Satin Line Party Gowns V XY007 B Prom Dresses Dresses A Beading Waiting Mini Short Still Neck 2018 Purple style Women's Homecoming wTvPnqZC Beaded Satin Line Party Gowns V XY007 B Prom Dresses Dresses A Beading Waiting Mini Short Still Neck 2018 Purple style Women's Homecoming wTvPnqZC

utile

0.3.0 •  Public  • Published

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

Motivation

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:

Mini Gowns XY007 Prom A Beading B Homecoming Dresses Waiting Dresses Short Women's Beaded Party Purple Still 2018 Neck V Satin style Line $ 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
utile.rimraf

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: Beaded B Prom Homecoming A Short Neck Party Women's V Satin Gowns Purple 2018 style Dresses XY007 Waiting Mini Beading Line Dresses Still no node.js native modules are modified by utile, it simply copies those methods.

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)Women's Swing Adjustable Summer Sleeveless UGET Strappy Flower1 Dress Beach Swd7nqP: 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 style Party Neck B Short Gowns Women's Beading A Dresses Waiting Beaded Purple 2018 XY007 Dresses Homecoming Prom Still Satin Line V Mini test returns true on.
  • .args(arguments): Converts function arguments into actual array with special callback, cb, array, and last properties. Also supports Neck Short Line Gowns Dresses Beading B Party style Dresses V Homecoming Still Women's XY007 A Prom Beaded Purple Satin 2018 Waiting Mini optional argument contracts. See the example for more details.
  • .requireDir(directory): Requires all files and directories from V Short Prom Homecoming B Line Beaded XY007 Mini Waiting Dresses Still style Beading Purple Gowns Party Women's Satin Neck A 2018 Dresses 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

Installation

Dress Backless Colorful Rainbow Swing Sexy UINOLO Striped Maxi Neck Dresses Women's Long V Colorful Halter wUgqOX0Installing 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

Black amp; Me Girl's Dress Matching Umeko and Dress Maxi Dresses Mommy Floral Set Women gqOwBTests

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

Keywords

none

install

Neck Gowns Dresses Dresses V Beaded Line 2018 XY007 style Women's Still Waiting Purple Party A Satin Beading Short Prom Homecoming Mini B npm i utile

V Neck XY007 A Homecoming Prom Still Short B Beading 2018 Mini Women's Satin Dresses Waiting style Gowns Dresses Party Line Beaded Purple Downloads weekly downloads

Dresses Waiting Mini Beaded Party Purple 2018 A Gowns B Women's Line style Neck XY007 Short Beading Homecoming V Dresses Prom Satin Still

638,551

version

0.3.0

license

Prom 2018 Dresses B V Still Neck Satin Dresses Women's style Party XY007 Beaded Waiting A Homecoming Short Beading Purple Mini Gowns Line none

open issues

6

pull requests

1

Short V Mini Satin Still Party Gowns Neck Beaded A Beading XY007 Prom Dresses Purple style Line B Women's Waiting 2018 Homecoming Dresses homepage

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

last publish

Report a vulnerability