@!!!!!/walk_up

1.0.0 • Public • Published

What is this?

A simple function for walking up a file directory until a certain file is found.

JavaScript version:

npm install walk-up

const { walkUpUntil } = require("walk_up")

let filepath = walkUpUntil("package.json")

Python version:

pip install walk-up

from walk_up import walk_up_until

filepath = walk_up_until("requirements.txt")

Ruby version:

gem install walk_up

require "walk_up"

require_relative walk_up_until("globals.rb") # <- will keep looking in parent directories for a "globals.rb" file

Readme

Keywords

none

Package Sidebar

Install

npm i @!!!!!/walk_up

Weekly Downloads

3

Version

1.0.0

License

ISC

Unpacked Size

2.8 kB

Total Files

4

Last publish

Collaborators

  • !!!!!