https://github.com/afeiship/next-underscored
Converts a camelized or dasherized string into an underscored one.
https://github.com/afeiship/next-underscored
case lang lodash next string underline underscored
Last synced: about 2 months ago
JSON representation
Converts a camelized or dasherized string into an underscored one.
- Host: GitHub
- URL: https://github.com/afeiship/next-underscored
- Owner: afeiship
- License: mit
- Created: 2017-09-19T09:37:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-27T00:06:51.000Z (over 2 years ago)
- Last Synced: 2025-06-08T06:40:39.171Z (about 1 year ago)
- Topics: case, lang, lodash, next, string, underline, underscored
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-underscored
> Converts a camelized or dasherized string into an underscored one.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```bash
npm install -S @jswork/next-underscored
```
## usage
```js
import '@jswork/next-underscored';
nx.underscored('/api/v1/test'); // _api_v1_test
nx.underscored('api/v1/test'); // api_v1_test
```
## license
Code released under [the MIT license](https://github.com/afeiship/next-underscored/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-underscored
[version-url]: https://npmjs.org/package/@jswork/next-underscored
[license-image]: https://img.shields.io/npm/l/@jswork/next-underscored
[license-url]: https://github.com/afeiship/next-underscored/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-underscored
[size-url]: https://github.com/afeiship/next-underscored/blob/master/dist/next-underscored.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-underscored
[download-url]: https://www.npmjs.com/package/@jswork/next-underscored