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

words.js

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

words.js - npm Package Compare versions

Comparing version 0.3.5 to 0.3.51

2

package.json
{
"name": "words.js",
"version": "0.3.5",
"version": "0.3.51",
"description": "A flexible, robust and powerful Javascript word-string manipulation library.",

@@ -5,0 +5,0 @@ "main": "words.min.js",

@@ -46,15 +46,8 @@ words.js

__________________________________
words.js includes types.js and strings.js.
Most methods overload strings.js methods, only to focus on words rather than characters.
Where in strings.js you use shuffle to randomly reorder the characters in a string, in words.js the overloaded
shuffle function randomly reorders the words in a string, or you can shuffle the characters of a specific word in
a string, and much more. See the API for some sweet examples.
<br/><br/>
All indexes in words.js are 1 based. Negative indexes can be used in most functions. -1 references the last
word in the internal words array, 1 references the first word.
- types.js is a tiny, but powerful custom type checker/enforcer. It's API can be found at: https://github.com/phazelift/types.js
- strings.js is a full-fledged string manipulation library. It's API can be found at: https://github.com/phazelift/strings.js
words.js is made for chaining operations on words in strings, most of it's methods return their
own context. To return the actual value of the internal string/array, one can use `.get()` or `.$` or `.string`.
___
words.js includes types.js and strings.js. In the browser you can access them via the following global variables:
In the browser you can access them via the following global variables:
- Types

@@ -75,2 +68,13 @@ - Strings

Most methods overload strings.js methods, only to focus on words rather than characters.
Where in strings.js you use shuffle to randomly reorder the characters in a string, in words.js the overloaded
shuffle function randomly reorders the words in a string, or you can shuffle the characters of a specific word in
a string, and much more. See the API for some sweet examples.
<br/><br/>
All indexes in words.js are 1 based. Negative indexes can be used in most functions. -1 references the last
word in the internal words array, 1 references the first word.
words.js is made for chaining operations on words in strings, most of it's methods return their
own context. To return the actual value of the internal string/array, one can use `.get()` or `.$` or `.string`.
___
All input and output is type save; you can throw in any type and still get a string if the expected output is of

@@ -77,0 +81,0 @@ type `<string>`. If any method receives an argument of a type it cannot process, the argument will simply be ignored.

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