@safelytyped/node-pathapi
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

Welcome To @safelytyped/node-pathapi!

Introduction

@safelytyped/node-pathapi is a protocol library.

It provides a Typescript interface for the NodeJS path module methods that work on both POSIX and Windows (ie, the interface that describes both path.posix and path.win32).

Use it to help you test libraries that take path as a dependency. See the Filepath safe type for a working example.

Quick Start

# run this from your Terminal
npm install @safelytyped/node-pathapi
// add this import to your Typescript code
import { PathApi } from "@safelytyped/node-pathapi"

VS Code users: once you've added a single import anywhere in your project, you'll then be able to auto-import anything else that this library exports.

Documentation

Looking for more detailed documentation? You'll find it under the docs folder.

Plus:

Readme

Keywords

none

Package Sidebar

Install

npm i @safelytyped/node-pathapi

Weekly Downloads

7

Version

1.1.1

License

BSD-3-Clause

Unpacked Size

145 kB

Total Files

45

Last publish

Collaborators

  • stuartherbert