class Attractor::JsDetector

Public Instance Methods

detect() click to toggle source
# File lib/attractor/detectors/js_detector.rb, line 3
def detect
  package_json_exists?
end
package_json_exists?() click to toggle source
# File lib/attractor/detectors/js_detector.rb, line 7
def package_json_exists?
  File.exist? File.expand_path("package.json", Dir.pwd)
end