New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@slynova/slug

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slynova/slug - npm Package Compare versions

Comparing version 1.0.1 to 1.1.1

9

package.json
{
"name": "@slynova/slug",
"version": "1.0.1",
"version": "1.1.1",
"author": "Romain Lanz <romain.lanz@slynova.ch>",

@@ -20,9 +20,10 @@ "license": "MIT",

"devDependencies": {
"japa": "^1.0.5",
"nyc": "^11.3.0"
"japa": "^1.0.6",
"japa-cli": "^1.0.1",
"nyc": "^11.5.0"
},
"dependencies": {
"charmap": "^1.0.2",
"charmap": "^1.1.5",
"lodash.kebabcase": "^4.1.1"
}
}

@@ -25,5 +25,36 @@ 'use strict'

return kebabCase(transform(text.toString()))
return kebabCase(
removeNonAsciiChar(
transform(
text.toString()
)
)
)
}
/**
* Remove non-ascii character.
*
* @method removeNonAsciiChar
*
* @param {string} text Text to remove non-ascii character
*
* @return {string}
*/
function removeNonAsciiChar (text) {
var newText = ''
for (var i = 0; i <= text.length; i++) {
if (text.charCodeAt(i) < 128) {
newText += text[i]
}
}
return newText
}
slug.extends = function (customMap) {
transform.extends(customMap)
}
module.exports = slug
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc