Project

walk_up

0.0
The project is in a healthy, maintained state
A simple function for walking up a file directory until a certain file is found. ```ruby require "walk_up" require_relative walk_up_until("globals.rb") # <- will keep looking in parent directories for a "globals.rb" file ```
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Dependencies
 Project Readme

What is this?

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

Python version:

pip install walk-up

from walk_up import walk_up_until

filepath = walk_up_until("requirements.txt")

JavaScript version:

npm install '@!!!!!/walk-up'

const { walkUpUntil } = require("@!!!!!/walk-up")

let filepath = walkUpUntil("package.json")

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