Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docvy-utils

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docvy-utils

general-purpose docvy utilities

  • 0.1.0
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

docvy-utils

node npm Travis Gemnasium Coveralls

installation:

⇒ npm install docvy-utils

the utilities:

var utils = require("docvy-utils");

The exported module object has all the properties from the module object from the built-in util module i.e. require("util") is cloned to the above export module object.

utils.defineCallback([callback])

Always returns a function that can be used in place of a callback, if none has been passed in your function. This is a convenience function that avoids the need to keep checking if a callback was passed before calling it, in program logic.

  • callback (Function):
    • you would normally pass the parameter suspected to be the callback.
    • if it is not a function, a new function will returned instead.

utils.getPath(pathname)

Returns application-specific paths. These paths are absolute.

  • pathname (String):
    • can be any of:
      • app.home: application user/home directory
      • app.cache: directory for all application caches
      • app.cache.plugins: directory for plugin handler's cache
      • app.logs: directory for logs
      • app.plugins: directory for user-installed plugins
    • if it does not match any of the above, null is returned.

Note: The target path is created if not yet existent.

license:

The MIT License (MIT)

Copyright (c) 2015 Forfuture we@forfuture.co.ke
Copyright (c) 2015 GochoMugo mugo@forfuture.co.ke

Keywords

FAQs

Package last updated on 28 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc