Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
node.js api helper
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
index.js
package.json

README.md

helper

Purpose of module is to be placeholder for oddities and everyday changes in node.js API.

Atm implemented OS safe directory separator and exports existsSync() that changed locations from path to fs between node.js versions 0.6 -> 0.8.

Usage:

npm install helper

Code:

var helper = require('helper'); helper.existsSync(..); console.log(__dirname + helper.sep);

This way you don't have to think what OS, versions or modules you use or need to use.

helper.existsSync() is same method as path.existsSync/fs.existsSync. helper.sep is slash or backslash depending on OS.

Idea is to gather this kind of stuff. Patches are welcome!

Something went wrong with that request. Please try again.