Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stdlib/string-lowercase

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/string-lowercase - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

5

lib/lowercase.js

@@ -24,2 +24,3 @@ /**

var isString = require( '@stdlib/assert-is-string' ).isPrimitive;
var format = require( '@stdlib/string-format' );

@@ -33,3 +34,3 @@

* @param {string} str - string to convert
* @throws {TypeError} must provide a primitive string
* @throws {TypeError} must provide a string
* @returns {string} lowercase string

@@ -43,3 +44,3 @@ *

if ( !isString( str ) ) {
throw new TypeError( 'invalid argument. Must provide a primitive string. Value: `'+str+'`.' );
throw new TypeError( format( 'invalid argument. Must provide a string. Value: `%s`.', str ) );
}

@@ -46,0 +47,0 @@ return str.toLowerCase();

{
"name": "@stdlib/string-lowercase",
"version": "0.0.8",
"version": "0.0.9",
"description": "Convert a string to lowercase.",

@@ -47,3 +47,4 @@ "license": "Apache-2.0",

"@stdlib/process-read-stdin": "^0.0.x",
"@stdlib/streams-node-stdin": "^0.0.x"
"@stdlib/streams-node-stdin": "^0.0.x",
"@stdlib/string-format": "^0.0.x"
},

@@ -50,0 +51,0 @@ "devDependencies": {

19

README.md

@@ -210,4 +210,4 @@ <!--

[test-image]: https://github.com/stdlib-js/string-lowercase/actions/workflows/test.yml/badge.svg
[test-url]: https://github.com/stdlib-js/string-lowercase/actions/workflows/test.yml
[test-image]: https://github.com/stdlib-js/string-lowercase/actions/workflows/test.yml/badge.svg?branch=v0.0.9
[test-url]: https://github.com/stdlib-js/string-lowercase/actions/workflows/test.yml?query=branch:v0.0.9

@@ -224,2 +224,9 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/string-lowercase/main.svg

[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
[chat-url]: https://gitter.im/stdlib-js/stdlib/
[stdlib]: https://github.com/stdlib-js/stdlib
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
[umd]: https://github.com/umdjs/umd

@@ -231,10 +238,4 @@ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules

[esm-url]: https://github.com/stdlib-js/string-lowercase/tree/esm
[branches-url]: https://github.com/stdlib-js/string-lowercase/blob/main/branches.md
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
[chat-url]: https://gitter.im/stdlib-js/stdlib/
[stdlib]: https://github.com/stdlib-js/stdlib
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/string-lowercase/main/LICENSE

@@ -241,0 +242,0 @@

Sorry, the diff of this file is not supported yet

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