simple-fake-path
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Simple Fake Path

Mockable fake path module

Usages

// Example in TypeScript
 
import { FakePath, symCwd, symRoot } from 'simple-fake-path' // FakePath is an abstract class
class Path extends FakePath {
  public readonly [symCwd] = '/working/directory'
  public readonly [symRoot] = ['/']
  public readonly sep = '/'
}
const path = new Path() // you can access to some path methods from here

License

MIT © Hoàng Văn Khải

Readme

Keywords

Package Sidebar

Install

npm i simple-fake-path

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

8.82 kB

Total Files

5

Last publish

Collaborators

  • khai96_