{"_id":"@coffeeio/hypher","_rev":"1-ff970d02eb59613fd1294d81906f5a33","name":"@coffeeio/hypher","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@coffeeio/hypher","version":"1.0.0","description":"A fast and small hyphenation engine","author":{"name":"MGApcDev","url":"CoffeeIO"},"devDependencies":{"benchmark":"=0.1.347","microtime":"^2.1.3","vows":">=0.5.6"},"directories":{"lib":"./lib"},"scripts":{"test":"vows"},"repository":{"type":"git","url":"git://github.com/coffeeio/hypher.git"},"keywords":["hyphenation","hypher","hypher.js"],"license":"BSD-3-Clause","main":"./lib/hypher.js","gitHead":"d90c7c79c19577f90e288a86515b01beafa2d50f","bugs":{"url":"https://github.com/coffeeio/hypher/issues"},"homepage":"https://github.com/coffeeio/hypher#readme","_id":"@coffeeio/hypher@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"mgapcdev","email":"mgapcdev@gmail.com"},"dist":{"integrity":"sha512-e2WAr7xbp4DhbbSZv6NB5+RVzgd1UXZybRUZzRKkdK6uCL6lfDUIaPZSWCpjRyEtAAB/DtcI7RciZdKmwzOLtA==","shasum":"cb01713ad517ea466680d382029cc62c7da09fab","tarball":"https://registry.npmjs.org/@coffeeio/hypher/-/hypher-1.0.0.tgz","fileCount":13,"unpackedSize":293098,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecKtdCRA9TVsSAnZWagAAvzMP/2QW9UcI4PNzDJP7qO0H\n6qOvku/5QhHheLA5rAkyKcdMwkoZeqei+VzHwlmU2J1ykNHdWucrABwQzHYJ\nS2XMx5UtywNo/GPJvdXhfcglRVIUMGhtSq/W/Kd7xG7mZxkNnnRqBpY6OaiU\nXfARFYBvTaP/EZIRVIXSzXex+Ouxh3Asc45uaAxs9lZX0MLR8FYeob/BX6dS\nA5GOsDI3uVjXkTHJj1Wy3rvHdZZyCSZiXTg1dcnlnV4kWp4ndurPRlDvvMXi\nKBwwFFoiHn+ILTbcfULSTQuxc2411gcfO6rOuIAdC7g1pi8py/shK7vTHS9V\ncjWVhAM/DFIDp6wGd48e0LwP04STj/1vfad7kSqZsC9Qwg5MAI3vcGp+91Ai\nTsxD0V1WANgwIT00YHMc3Dtc1Hhj2XSTlap6GoHaRbEf/QPNmvsfmmf+KLg9\nTRYpIwaWrEVT+6512EhSWOZzSEDoSOZdF2oIQUa5i4KhVwUzgjBrmrOg8xIK\nJKbCSVWkAAjTZ0nfGhls2aCJIkvn+vKygeW08m3gt/ywwadPBQ+17Upc4Wk9\nq80x/lrGD5hBz6WNqlho9geSRlMIbD9xy3+y7TL20v3TOo3fzKYwyZ5HqWoY\nUHpQYxMML2ajxZ8XEeVwPw4g2d2UMWodmKHxCkQ6b9I7hM5UenL1DileJ1Nf\nR+XX\r\n=Meg4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7b6NOQbN7zevkUK2ngd9rqAWVTaR4Q7WVJHYIUFlGSAIhAP2XHOFqhlN6lrXpsupyxDA4eUwpVWvQhJUIbMsceD0G"}]},"maintainers":[{"name":"mgapcdev","email":"mgapcdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypher_1.0.0_1584442205086_0.3849423558357896"},"_hasShrinkwrap":false}},"time":{"created":"2020-03-17T10:50:04.814Z","1.0.0":"2020-03-17T10:50:05.234Z","modified":"2022-04-05T00:10:36.524Z"},"maintainers":[{"name":"mgapcdev","email":"mgapcdev@gmail.com"}],"description":"A fast and small hyphenation engine","homepage":"https://github.com/coffeeio/hypher#readme","keywords":["hyphenation","hypher","hypher.js"],"repository":{"type":"git","url":"git://github.com/coffeeio/hypher.git"},"author":{"name":"MGApcDev","url":"CoffeeIO"},"bugs":{"url":"https://github.com/coffeeio/hypher/issues"},"license":"BSD-3-Clause","readme":"## Hypher\n\n### Fork of hyphenation library to remove jQuery and delete unused code.\n\nA small and fast JavaScript hyphenation engine. Can be used in Node.js and as a jQuery plugin.\n\n## Node.js\nHypher can be installed from NPM:\n\n    npm install hypher hyphenation.en-us\n\nYou can then use it in your program by creating an instance of `Hypher` and giving it a language object:\n\n    var Hypher = require('hypher'),\n        english = require('hyphenation.en-us'),\n        h = new Hypher(english);\n\n    // returns ['hy', 'phen', 'ation']\n    h.hyphenate('hyphenation');\n\nSee `examples/node/` for a full example on how to use Hypher. The `hyphenate` method does not support hyphenated compound words. These should be split into individual words before being passed to the hyphenation engine and reassembled afterwards by the caller. You can also use the `hyphenateText` method to hyphenate a string of text. The `hyphenateText` method *does* support compound words and returns a string with inserted soft hyphens (`\\u00AD`.)\n\n    // returns 'Hy|phen|ation is use|ful when cen|ter jus|ti|fy|ing a text.' where `|` is a soft hyphen\n    h.hyphenateText('Hyphenation is useful when center justifying a text.');\n\nThe `hyphenateText` method takes an optional second parameter `minLength` which is the minimum length a word should have to be considered for hyphenation (defaults to 4.) Note that an instance of the `Hypher` class should only be created once for each language object.\n\nThe language object should contain:\n\n    {\n      // The minimum number of unhyphenated characters at the left of each word. (required)\n      leftmin: <number>,\n\n      // The minimum number of unhyphenated characters at the right of each word. (required)\n      rightmin: <number>,\n\n      // A comma separated list of hyphenation exceptions. Custom hyphenations\n      // can be specified using '\\u2027' (hyphenation point) as hyphenation\n      // character. List items are case-insensitive. (Optional)\n      exceptions: <string>,\n\n      // A patterns object (required)\n      patterns: {}\n    }\n\nLanguage patterns can be found in the [patterns repository](https://github.com/bramstein/hyphenation-patterns).\n\n## License\nHypher is licensed under the three clause BSD license (see BSD.txt.)\n\n## See also\n* [Hyphenation patterns for use with Hypher](https://github.com/bramstein/hyphenation-patterns)\n* [Hyphenator.js](http://code.google.com/p/hyphenator/)\n\n## Contributors\n\n* Laurens Meurs - improvements to the exception list\n","readmeFilename":"README.md"}