Converts a camelized or dasherized string into an underscored one.
npm install -S @jswork/next-underscored
import '@jswork/next-underscored';
nx.underscored('/api/v1/test'); // _api_v1_test
nx.underscored('api/v1/test'); // api_v1_test
Code released under the MIT license.