{ "_id": "unicode-length", "_rev": "8-ed60c08f7b44bc2d6bb7d61247949ce1", "name": "unicode-length", "description": "Get the length of unicode strings", "dist-tags": { "latest": "2.0.2" }, "versions": { "1.0.0": { "name": "unicode-length", "version": "1.0.0", "description": "Get the length of unicode strings", "main": "build/unicode-length.js", "homepage": "https://github.com/jviotti/unicode-length", "repository": { "type": "git", "url": "git://github.com/jviotti/unicode-length.git" }, "keywords": [ "unicode", "string", "length" ], "directories": { "test": "tests" }, "scripts": { "test": "gulp test", "prepublish": "gulp build" }, "author": { "name": "Juan Cruz Viotti", "email": "juanchiviotti@gmail.com" }, "license": "MIT", "devDependencies": { "chai": "~1.10.0", "coffee-script": "~1.8.0", "gulp": "~3.8.10", "gulp-coffee": "~2.2.0", "gulp-coffeelint": "~0.4.0", "gulp-mocha": "~2.0.0", "gulp-util": "~3.0.1", "mocha": "~2.0.1", "sinon": "~1.12.2", "sinon-chai": "~2.6.0" }, "dependencies": { "chalk": "^1.0.0", "lodash": "^3.7.0", "punycode": "^1.3.2" }, "gitHead": "9f45d8bc0459205b9b8af351c2e70d230f0e6ab1", "bugs": { "url": "https://github.com/jviotti/unicode-length/issues" }, "_id": "unicode-length@1.0.0", "_shasum": "cc2eb5eecb5443607b02705c0d5facf7100d434f", "_from": ".", "_npmVersion": "2.3.0", "_nodeVersion": "0.10.24", "_npmUser": { "name": "jviotti", "email": "juanchiviotti@gmail.com" }, "dist": { "shasum": "cc2eb5eecb5443607b02705c0d5facf7100d434f", "tarball": "https://registry.npmjs.org/unicode-length/-/unicode-length-1.0.0.tgz" }, "maintainers": [ { "name": "jviotti", "email": "juanchiviotti@gmail.com" } ] }, "1.0.1": { "name": "unicode-length", "version": "1.0.1", "description": "Get the length of unicode strings", "main": "build/unicode-length.js", "files": [ "build/unicode-length.js" ], "homepage": "https://github.com/jviotti/unicode-length", "repository": { "type": "git", "url": "git://github.com/jviotti/unicode-length.git" }, "keywords": [ "unicode", "string", "length" ], "directories": { "test": "tests" }, "scripts": { "test": "gulp test", "prepublish": "gulp build" }, "author": { "name": "Juan Cruz Viotti", "email": "juanchiviotti@gmail.com" }, "license": "MIT", "devDependencies": { "chai": "~1.10.0", "coffee-script": "~1.8.0", "gulp": "~3.8.10", "gulp-coffee": "~2.2.0", "gulp-coffeelint": "~0.4.0", "gulp-mocha": "~2.0.0", "gulp-util": "~3.0.1", "mocha": "~2.0.1", "sinon": "~1.12.2", "sinon-chai": "~2.6.0" }, "dependencies": { "punycode": "^1.3.2", "strip-ansi": "^3.0.1" }, "gitHead": "93ea76df848251efc9710f02fb4c1d373b1f45cf", "bugs": { "url": "https://github.com/jviotti/unicode-length/issues" }, "_id": "unicode-length@1.0.1", "_shasum": "5432aaac2fc961232d390ae83e3a74e9e7339c20", "_from": ".", "_npmVersion": "3.9.6", "_nodeVersion": "6.1.0", "_npmUser": { "name": "jviotti", "email": "jviottidc@gmail.com" }, "dist": { "shasum": "5432aaac2fc961232d390ae83e3a74e9e7339c20", "tarball": "https://registry.npmjs.org/unicode-length/-/unicode-length-1.0.1.tgz" }, "maintainers": [ { "name": "jviotti", "email": "juanchiviotti@gmail.com" } ], "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/unicode-length-1.0.1.tgz_1468891323600_0.6456862580962479" } }, "1.0.2": { "name": "unicode-length", "version": "1.0.2", "description": "Get the length of unicode strings", "main": "build/unicode-length.js", "files": [ "build/unicode-length.js" ], "homepage": "https://github.com/jviotti/unicode-length", "repository": { "type": "git", "url": "git://github.com/jviotti/unicode-length.git" }, "keywords": [ "unicode", "string", "length" ], "directories": { "test": "tests" }, "scripts": { "test": "gulp test", "prepublish": "gulp build" }, "author": { "name": "Juan Cruz Viotti", "email": "juanchiviotti@gmail.com" }, "license": "MIT", "devDependencies": { "chai": "~1.10.0", "coffee-script": "~1.8.0", "gulp": "~3.8.10", "gulp-coffee": "~2.2.0", "gulp-coffeelint": "~0.4.0", "gulp-mocha": "~2.0.0", "gulp-util": "~3.0.1", "mocha": "~2.0.1", "sinon": "~1.12.2", "sinon-chai": "~2.6.0" }, "dependencies": { "punycode": "^2.0.0", "strip-ansi": "^3.0.1" }, "gitHead": "ac7ec6e3dc1278d1cfdcd7a3bfcd66db0a4f131e", "bugs": { "url": "https://github.com/jviotti/unicode-length/issues" }, "_id": "unicode-length@1.0.2", "_shasum": "514b329d63cbc43b0114b3f6b4a5a2b3cc1c730d", "_from": ".", "_npmVersion": "3.9.6", "_nodeVersion": "6.1.0", "_npmUser": { "name": "jviotti", "email": "jviottidc@gmail.com" }, "dist": { "shasum": "514b329d63cbc43b0114b3f6b4a5a2b3cc1c730d", "tarball": "https://registry.npmjs.org/unicode-length/-/unicode-length-1.0.2.tgz" }, "maintainers": [ { "name": "jviotti", "email": "juanchiviotti@gmail.com" } ], "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/unicode-length-1.0.2.tgz_1471391452598_0.3869380452670157" } }, "1.0.3": { "name": "unicode-length", "version": "1.0.3", "description": "Get the length of unicode strings", "main": "build/unicode-length.js", "files": [ "build/unicode-length.js" ], "homepage": "https://github.com/jviotti/unicode-length", "repository": { "type": "git", "url": "git://github.com/jviotti/unicode-length.git" }, "keywords": [ "unicode", "string", "length" ], "directories": { "test": "tests" }, "scripts": { "test": "gulp test", "prepublish": "gulp build" }, "author": { "name": "Juan Cruz Viotti", "email": "juanchiviotti@gmail.com" }, "license": "MIT", "devDependencies": { "chai": "~1.10.0", "coffee-script": "~1.8.0", "gulp": "~3.8.10", "gulp-coffee": "~2.2.0", "gulp-coffeelint": "~0.4.0", "gulp-mocha": "~2.0.0", "gulp-util": "~3.0.1", "mocha": "~2.0.1", "sinon": "~1.12.2", "sinon-chai": "~2.6.0" }, "dependencies": { "punycode": "^1.3.2", "strip-ansi": "^3.0.1" }, "gitHead": "f0eedb5753ed320a7e195ccd770c52efb5355c8d", "bugs": { "url": "https://github.com/jviotti/unicode-length/issues" }, "_id": "unicode-length@1.0.3", "_shasum": "5ada7a7fed51841a418a328cf149478ac8358abb", "_from": ".", "_npmVersion": "3.9.6", "_nodeVersion": "6.1.0", "_npmUser": { "name": "jviotti", "email": "jviotti@openmailbox.org" }, "dist": { "shasum": "5ada7a7fed51841a418a328cf149478ac8358abb", "tarball": "https://registry.npmjs.org/unicode-length/-/unicode-length-1.0.3.tgz" }, "maintainers": [ { "name": "jviotti", "email": "juanchiviotti@gmail.com" } ], "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/unicode-length-1.0.3.tgz_1472049119656_0.21989301685243845" } }, "2.0.0": { "name": "unicode-length", "version": "2.0.0", "description": "Get the length of unicode strings", "main": "build/unicode-length.js", "files": [ "build/unicode-length.js" ], "homepage": "https://github.com/jviotti/unicode-length", "repository": { "type": "git", "url": "git://github.com/jviotti/unicode-length.git" }, "keywords": [ "unicode", "string", "length" ], "directories": { "test": "tests" }, "scripts": { "test": "gulp test", "prepublish": "gulp build" }, "author": { "name": "Juan Cruz Viotti", "email": "juanchiviotti@gmail.com" }, "license": "MIT", "devDependencies": { "chai": "~1.10.0", "coffee-script": "~1.8.0", "gulp": "~3.8.10", "gulp-coffee": "~2.2.0", "gulp-coffeelint": "~0.4.0", "gulp-mocha": "~2.0.0", "gulp-util": "~3.0.1", "mocha": "~2.0.1", "sinon": "~1.12.2", "sinon-chai": "~2.6.0" }, "dependencies": { "punycode": "^2.0.0", "strip-ansi": "^3.0.1" }, "gitHead": "f4d66c7d59f9bd935519d64866f16dcb81eeb413", "bugs": { "url": "https://github.com/jviotti/unicode-length/issues" }, "_id": "unicode-length@2.0.0", "_shasum": "5a1cceb487b2fd3871448182ba136c3ed85a8436", "_from": ".", "_npmVersion": "3.9.6", "_nodeVersion": "6.1.0", "_npmUser": { "name": "jviotti", "email": "jviotti@openmailbox.org" }, "dist": { "shasum": "5a1cceb487b2fd3871448182ba136c3ed85a8436", "tarball": "https://registry.npmjs.org/unicode-length/-/unicode-length-2.0.0.tgz" }, "maintainers": [ { "name": "jviotti", "email": "juanchiviotti@gmail.com" } ], "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/unicode-length-2.0.0.tgz_1472050048551_0.6489736458752304" } }, "2.0.1": { "name": "unicode-length", "version": "2.0.1", "description": "Get the length of unicode strings", "main": "build/unicode-length.js", "files": [ "build/unicode-length.js" ], "homepage": "https://github.com/jviotti/unicode-length", "repository": { "type": "git", "url": "git://github.com/jviotti/unicode-length.git" }, "keywords": [ "unicode", "string", "length" ], "directories": { "test": "tests" }, "scripts": { "test": "gulp test", "prepublish": "gulp build" }, "author": { "name": "Juan Cruz Viotti", "email": "jv@jviotti.com" }, "license": "MIT", "devDependencies": { "chai": "~1.10.0", "coffee-script": "~1.8.0", "gulp": "~3.8.10", "gulp-coffee": "~2.2.0", "gulp-coffeelint": "~0.4.0", "gulp-mocha": "~2.0.0", "gulp-util": "~3.0.1", "mocha": "~2.0.1", "sinon": "~1.12.2", "sinon-chai": "~2.6.0" }, "dependencies": { "punycode": "^2.0.0", "strip-ansi": "^3.0.1" }, "gitHead": "b809ed02267356b0ce8e5aa6e44e4ddc02a5f887", "bugs": { "url": "https://github.com/jviotti/unicode-length/issues" }, "_id": "unicode-length@2.0.1", "_shasum": "84ddc309c2323635f642e86d448e9eaec084c04a", "_from": ".", "_npmVersion": "3.10.10", "_nodeVersion": "6.1.0", "_npmUser": { "name": "jviotti", "email": "jviotti@openmailbox.org" }, "dist": { "shasum": "84ddc309c2323635f642e86d448e9eaec084c04a", "tarball": "https://registry.npmjs.org/unicode-length/-/unicode-length-2.0.1.tgz" }, "maintainers": [ { "name": "jviotti", "email": "juanchiviotti@gmail.com" } ], "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/unicode-length-2.0.1.tgz_1502123674503_0.9242851508315653" } }, "2.0.2": { "name": "unicode-length", "version": "2.0.2", "description": "Get the length of unicode strings", "main": "lib/unicode-length.js", "homepage": "https://github.com/jviotti/unicode-length", "repository": { "type": "git", "url": "git://github.com/jviotti/unicode-length.git" }, "keywords": [ "unicode", "string", "length" ], "directories": { "test": "tests" }, "scripts": { "lint": "standard", "test": "node ./tests/unicode-length.spec.js | tap-spec" }, "author": { "name": "Juan Cruz Viotti", "email": "jv@jviotti.com" }, "license": "MIT", "devDependencies": { "standard": "^12.0.1", "tap-spec": "^5.0.0", "tape": "^4.10.2" }, "dependencies": { "punycode": "^2.0.0", "strip-ansi": "^3.0.1" }, "gitHead": "8cf253d244bc9ea40ec0880c6259d452a480a699", "bugs": { "url": "https://github.com/jviotti/unicode-length/issues" }, "_id": "unicode-length@2.0.2", "_npmVersion": "5.6.0", "_nodeVersion": "9.11.2", "_npmUser": { "name": "jviotti", "email": "jv@jviotti.com" }, "dist": { "integrity": "sha512-Ph/j1VbS3/r77nhoY2WU0GWGjVYOHL3xpKp0y/Eq2e5r0mT/6b649vm7KFO6RdAdrZkYLdxphYVgvODxPB+Ebg==", "shasum": "e5eb4c0d523fdf7bebb59ca261c9ca1cf732da96", "tarball": "https://registry.npmjs.org/unicode-length/-/unicode-length-2.0.2.tgz", "fileCount": 4, "unpackedSize": 4037, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7+JXCRA9TVsSAnZWagAAoGgQAIyClT4SCHx+8IZDLADS\nqRfxuT6FAraVQZCSjvned5X8XWq1crgRu+YsNlmkliDNSGz7DxnCfs5oB5v4\nx7fxO9cpaK1VQ1MaXpJm1qpv7uWxiqRHBwbuYf1LlYwuzYeRyNqbC8NaCf2r\nLqkF0GmUDdO1j/+RorUL/IbW/NG2cJylpH7SFqRGKjsXRsqUvT2FqiPO7Egp\nB1QHCJHp428t8dU6Kv7pJs3V9ab1wC3vDrjTBD/gbjLrqirTLvKSfYii6HHG\naHmwxl6v+YLgV1jG+uPT3t3BR2irurifyGLKPp63Xn/cihSHxADOLvmU9AXO\nsP1n3dDzyzYmOIKAeruL24l+iDhlJNpbUuICK9UxAoYOZAtMIpZDAm1GbOGK\nBOv/Xi8+X3BDaYzMHyGh+9Ph49OQ8GGnzYE8VAtnW0HPJQLG7eIjD7VulvOs\nCQAyKaHYezMKEKKb7hmxU0xGi+sjmN7gsvVnVXXB3Nhc5xNXRSGqsnHlrJc2\nzzwu4wOzCzPHyaaHaxhom7lesS8hiCkdqn5ehH8tb86tAwyTv12IHyXZ0O6D\nRDiWpcayj61zEnNAFhC/6Ymc9PR/7euhHBoiTNV1MpBUiwsT2bSfhJGaBvNa\nk9DCBPByFsdgWZu2mUoAMYmoGtuSVkY4XWeQuUNkG80iUhDn99gGY0JmcVor\n4YRj\r\n=YF9i\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "jviotti", "email": "juanchiviotti@gmail.com" } ], "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/unicode-length_2.0.2_1559224918322_0.9162816947150165" }, "_hasShrinkwrap": false } }, "readme": "unicode-length\n--------------\n\n[![npm version](https://badge.fury.io/js/unicode-length.svg)](http://badge.fury.io/js/unicode-length)\n[![dependencies](https://david-dm.org/jviotti/unicode-length.png)](https://david-dm.org/jviotti/unicode-length.png)\n[![Build Status](https://travis-ci.org/jviotti/unicode-length.svg?branch=master)](https://travis-ci.org/jviotti/unicode-length)\n\nInstallation\n------------\n\nInstall `unicode-length` by running:\n\n```sh\n$ npm install --save unicode-length\n```\n\nDocumentation\n-------------\n\n### Number unicodeLength.get(String input)\n\nGet the length of a unicode string.\n\nExample:\n\n```coffee\nunicodeLength = require('unicode-length')\nconsole.log(unicodeLength.get('汉字'))\n# Outputs 2\n```\n\nTests\n-----\n\nRun the test suite by doing:\n\n```sh\n$ gulp test\n```\n\nContribute\n----------\n\n- Issue Tracker: [github.com/jviotti/unicode-length/issues](https://github.com/jviotti/unicode-length/issues)\n- Source Code: [github.com/jviotti/unicode-length](https://github.com/jviotti/unicode-length)\n\nBefore submitting a PR, please make sure that you include tests, and that [coffeelint](http://www.coffeelint.org/) runs without any warning:\n\n```sh\n$ gulp lint\n```\n\nSupport\n-------\n\nIf you're having any problem, please [raise an issue](https://github.com/jviotti/unicode-length/issues/new) on GitHub.\n\nLicense\n-------\n\nThe project is licensed under the MIT license.\n", "maintainers": [ { "name": "jviotti", "email": "juanchiviotti@gmail.com" } ], "time": { "modified": "2019-05-30T14:02:01.062Z", "created": "2015-04-27T19:32:13.507Z", "1.0.0": "2015-04-27T19:32:13.507Z", "1.0.1": "2016-07-19T01:22:05.786Z", "1.0.2": "2016-08-16T23:50:56.422Z", "1.0.3": "2016-08-24T14:31:59.918Z", "2.0.0": "2016-08-24T14:47:32.353Z", "2.0.1": "2017-08-07T16:34:34.591Z", "2.0.2": "2019-05-30T14:01:58.408Z" }, "homepage": "https://github.com/jviotti/unicode-length", "keywords": [ "unicode", "string", "length" ], "repository": { "type": "git", "url": "git://github.com/jviotti/unicode-length.git" }, "author": { "name": "Juan Cruz Viotti", "email": "jv@jviotti.com" }, "bugs": { "url": "https://github.com/jviotti/unicode-length/issues" }, "license": "MIT", "readmeFilename": "README.md" }