Atom-Package-Path
An npm module to get path of requirer apm module from your npm moduleAPI
export function guess(): ?string
export function guessFromCallIndex(index: number): ?string
export function guessFromFilePath(filePath: string): ?string
Usage
import {guess} from 'atom-package-path'
export function doSomething() {
console.log('this package was required in apm package', guess())
}