For an exported function, string-in, string-out API is awesome because it’s simple. The problem happens later when you want to add more to the output, for example, a log with time spent. Or an alternative output, like locations of string indexes. Or the version
from package.json.
apiΣ=2
Why object-path
package is great
The npm package object-path
is a getter/setter for nested arrays and plain objects. Here we use it directly and also align our API’s to it. Here’s why.