npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wizzi-utils

v0.7.22

Published

Utility library for the wizzi factory.

Downloads

24

Readme

wizzi-utils

Utility library for the wizzi factory.

Work still in progress

Availability of features will be announced

on Twitter and Facebook

vfile - virtual file system

var vfile = require('wizzi-utils').vfile

vfileInst - create a virtual file system instance

var vfileInst = vfile([fsimpl])

  • fsimpl Object Default: NodeJS fs object or fs-graceful if available.

vfileInst.read(path_string, options[, callback])

  • path_string
  • options Object
  • callback Function If absent the call is sync. * err
  • content

vfileInst.write(path_string, content, options[, callback])

  • path_string

  • content String

  • options Object

  • callback Function If absent the call is sync. When the call is sync if fsimpl does not implement readFileSync throw Error.

  • err

  • content

vfileInst.readJSON(path_string, options[, callback])

vfileInst.writeJSON(path_string, obj, options[, callback])

The fsimpl - interface

stat(path, callback)

statSync(path)

lstat(path, callback)

lstatSync(path)

readFile(path[, options], callback)

readFileSync(path[, options])

writeFile(path, content[, options], callback)

writeFileSync(path, content[, options])

readdir(path[, options], callback)

readdirSync(path[, options])

mkdir(path[, options], callback)

mkdirSync(path[, options])

verify - helper object

var verify = require('wizzi-utils').verify

verify - type checks

verify.isDefined(item)

verify.isNullOrUndefined(item)

verify.isObject(item)

verify.isArray(item)

verify.isFunction(item)

verify.isNumber(item)

verify.isBoolean(item)

verify.isDate(item)

verify.isString(item)

verify.isEmpty(item)

verify.isNotEmpty(item)

verify.isPrimitive(item)

verify.isRegExp(item)

verify.isError(item)

verify.isAbsolutePath(item)

verify.isIttfMacro(item)

verify.convert(value, type[, unquote])

  • value String If @@null return null; if @@undefined return undefined.
  • type String One-of string, integer, float, boolean, date
  • options Object

verify.canConvertTo(value, type)

  • value String
  • type String One-of string, integer, float, boolean, date

verify - validations

verify.isEmail(value)

verify.isEmails(value)

verify.isMinLength(value, length)

verify.isMaxLength(value, length)

verify.isExactLength(value, length)

verify.isGreaterThan(value, test)

verify.isLessThan(value, test)

verify.isGreaterEqualThan(value, test)

verify.isLessEqualThan(value, test)

verify.isAlpha(value)

verify.isAlphaNumeric(value)

verify.isIp(value)

verify.isBase64(value)

verify.isUrl(value)

verify.isCreditCard(value)

verify.isGreaterThanDate(value, date)

verify.isLessThanDate(value, date)

verify.isGreaterEqualDate(value, date)

verify.isLessEqualDate(value, date)

verify - errors

verify.error([inner,] [obj,] message, [arg-1[, arg-2[, arg-...]]])

verify.fatal(err[, code])

folderScanner - ittf documents folder scanner

var folderScanner = require('wizzi-utils').folderScanner

folderScanner.scan(folderPath[, options])

  • folderPath uri
  • options Object
  • returns the root IttfFsNode of the 'folderPath' with its descendant folders as children.

ittfDocumentGraph - enhanced mTree with import, export, analize capabilities

var ittfDocumentGraph = require('wizzi-utils').ittfDocumentGraph

ittfDocumentGraph.loadFrom(path_string)

  • path_string uri The uri of the ittf document that will be loaded as is (no composition, non template evaluation)
  • returns an ittfDocumentGraph instance

ittfDocumentGraph.loadFrom(mTree)

  • mTree Object An existent final or partial mTree.
  • returns an ittfDocumentGraph instance

ittfHtmlPrettifier - ittf html formatter for documentation

var ittfHtmlPrettifier = require('wizzi-utils').ittfHtmlPrettifier

ittfHtmlPrettifier(rootNode[, options])

  • rootNode Object ittfDocumentGraph instance
  • options Object

jsHtmlPrettifier - javascript html formatter for documentation

var jsHtmlPrettifier = require('wizzi-utils').jsHtmlPrettifier

jsHtmlPrettifier(script[, options])

  • script String javascript code
  • options Object

Ittf scanner Feature

var ittfScanner = require('wizzi-utils').ittfScanner


Ittf graph Feature

var ittfGraph = require('wizzi-utils').ittfGraph


Filesystem Feature

var fSystem = require('wizzi-utils').fSystem


Prettify Feature

var pretty = require('wizzi-utils').pretty


Lorem ipsum Feature

var lorem = require('wizzi-utils').lorem


Crypto Feature

var crypto = require('wizzi-utils').crypto


Helpers Feature

var helpers = require('wizzi-utils').helpers

Wizzi

One machinery, many productions.

Built With

License