Socket
Socket
Sign inDemoInstall

scule

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.2.0

11

CHANGELOG.md

@@ -5,2 +5,13 @@ # Changelog

## [0.2.0](https://github.com/nuxt-contrib/scule/compare/v0.1.1...v0.2.0) (2021-04-22)
### ⚠ BREAKING CHANGES
* add `exports` field
### Features
* add `exports` field ([6241d0f](https://github.com/nuxt-contrib/scule/commit/6241d0f2b4892c5edc820fb2271b6666ef564af0)), closes [#2](https://github.com/nuxt-contrib/scule/issues/2)
### [0.1.1](https://github.com/nuxt-contrib/scule/compare/v0.1.0...v0.1.1) (2021-02-16)

@@ -7,0 +18,0 @@

14

package.json
{
"name": "scule",
"version": "0.1.1",
"version": "0.2.0",
"description": "",

@@ -8,5 +8,11 @@ "repository": "nuxt-contrib/scule",

"sideEffects": false,
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [

@@ -13,0 +19,0 @@ "dist"

@@ -41,3 +41,3 @@ # 🧵 Scule

- If an upper case if followed by other upper case chars (like `FooBAR`), it is preserved
- If an uppercase letter is followed by other uppercase letters (like `FooBAR`), they are preserved

@@ -54,3 +54,3 @@ ### `camelCase`

- It does **not** preserves case
- It does **not** preserve case

@@ -63,11 +63,11 @@ ### `snakeCase`

Converts first charachter to upper case
Converts first character to upper case
### `lowerFirst(str)`
Converts first charachter to lower case
Converts first character to lower case
### `splitByCase(str, splitters?)`
- Splits string by splitters (default: `['-', '_', '/', '.]`)
- Splits string by the splitters provided (default: `['-', '_', '/', '.]`)
- Splits when case changes from lower to upper (only rising edges)

@@ -74,0 +74,0 @@ - Case is preserved in returned value

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc