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

longest

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

longest - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

index.js

@@ -1,6 +0,6 @@

/**
/*!
* longest <https://github.com/jonschlinkert/longest>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT license.
* Licensed under the MIT License.
*/

@@ -27,3 +27,3 @@

for (; i < len; i++) {
ele = arr[i];
ele = arr[i].toString();
elen = ele.length;

@@ -30,0 +30,0 @@

{
"name": "longest",
"version": "1.0.0",
"description": "Get the longest item in an array.",
"version": "1.0.1",
"homepage": "https://github.com/jonschlinkert/longest",

@@ -21,12 +21,12 @@ "author": {

},
"main": "index.js",
"files": [
"index.js"
],
"main": "index.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"engines": {
"node": ">=0.10.0"
},
"devDependencies": {

@@ -40,9 +40,6 @@ "fill-range": "^2.1.0",

"item",
"javascript",
"long",
"longest",
"util",
"utility",
"utils"
"length",
"longest"
]
}

@@ -16,6 +16,7 @@ # longest [![NPM version](https://badge.fury.io/js/longest.svg)](http://badge.fury.io/js/longest) [![Build Status](https://travis-ci.org/jonschlinkert/longest.svg)](https://travis-ci.org/jonschlinkert/longest)

## Run tests
## Running tests
Install dev dependencies.
```bash
npm test
npm i -d && npm test
```

@@ -34,2 +35,17 @@

## Related projects
* [longest-value](https://github.com/jonschlinkert/longest-value): Get the longest value for the given property from an array of objects. Useful for aligning values.
* [right-align-values](https://github.com/jonschlinkert/right-align-values): Right align the values of a given property for each object in an array. Useful for creating text columns or tables.
* [right-pad-values](https://github.com/jonschlinkert/right-pad-values): Right pad the values of a given property for each object in an array. Useful for creating text columns or tables.
* [repeat-string](https://github.com/jonschlinkert/repeat-string): Repeat the given string n times. Fastest implementation for repeating a string.
* [pad-right](https://github.com/jonschlinkert/pad-right): Right pad a string with zeros or a specified string. Fastest implementation.
* [pad-left](https://github.com/jonschlinkert/pad-left): Left pad a string with zeros or a specified string. Fastest implementation.
## Running tests
Install dev dependencies.
```bash
npm i -d && npm test
```
## Contributing

@@ -46,3 +62,3 @@ Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/longest/issues)

## License
Copyright (c) 2014-2015 Jon Schlinkert
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license

@@ -52,2 +68,2 @@

_This file was generated by [verb](https://github.com/assemble/verb) on February 24, 2015._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 31, 2015._
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