New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@teclone/node-utils

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teclone/node-utils

A collection of day-to-day utility methods specifically for Node environment

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
16
-40.74%
Maintainers
1
Weekly downloads
 
Created
Source

Node-Utils

Build Status Coverage Status semantic-release npm version npm

Node-Utils is a collection of day-to-day utility methods usable in node environments.

Installation

npm install @teclone/node-utils

getClosesetPackageDir(startPath: string = process.cwd())

This function returns the absolute path of the closest directory that contains a package.json file.

It will return startPath if startPath contains a package.json file as well.

import { getClosestPackageDir } from '@teclone/node-utils';

console.log(getClosestPackageDir());

mkdirSync(path: string)

Recursively creates the path given. If path points to a file, only the directories will be created.

import { mkdirSync } from '@teclone/node-utils';

mkdirSync('/projects/examples/test.ts');

// the directory path /projects/examples will be created

Keywords

utility-methods

FAQs

Package last updated on 01 May 2022

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