{"_id":"readmore-js","_rev":"23-f435dd88e9083f9baf069d94ac14813c","name":"readmore-js","dist-tags":{"latest":"3.1.0","next":"3.1.0"},"versions":{"2.0.4":{"name":"readmore-js","version":"2.0.4","keywords":["css","jquery","readmore","expand","collapse"],"author":{"name":"Jed Foster","email":"jed@jedfoster.com"},"license":"MIT","_id":"readmore-js@2.0.4","maintainers":[{"name":"jedfoster","email":"jed@jedfoster.com"}],"homepage":"https://github.com/jedfoster/Readmore.js","bugs":{"url":"https://github.com/jedfoster/Readmore.js/issues"},"dist":{"shasum":"5c8c3af76680d5ac13ab4d9ba424b697148e84e5","tarball":"https://registry.npmjs.org/readmore-js/-/readmore-js-2.0.4.tgz","integrity":"sha512-CfOaqnD3oGoxdBOewrGh4WDcsJmrlfuyBoc9zrUQr/puiIC7K9sLOkgW5NcjM5M6DUAg9B/g/2beShQuFkqI7A==","signatures":[{"sig":"MEYCIQCPIKBTS8ZomIcebxB23+2vtDiuVBlKS31Km3q2K/6KIQIhAJS3RxV8zjO1q6UwPqZPMYCsT1xyfdgxSKUpE6+eQJjV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"readmore.js","_from":".","_shasum":"5c8c3af76680d5ac13ab4d9ba424b697148e84e5","gitHead":"ed66515eafef653d60b51727ede803296b1ea4d8","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"jedfoster","email":"jed@jedfoster.com"},"repository":{"url":"git+https://github.com/jedfoster/Readmore.js.git","type":"git"},"_npmVersion":"3.3.6","description":"A lightweight jQuery plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.","directories":{},"_nodeVersion":"5.0.0","dependencies":{"jquery":"~2.1.4"},"devDependencies":{"gulp":"^3.8.10","gulp-rename":"^1.2.0","gulp-uglify":"^1.0.2"}},"2.1.0":{"name":"readmore-js","version":"2.1.0","keywords":["css","jquery","readmore","expand","collapse"],"author":{"name":"Jed Foster","email":"jed@jedfoster.com"},"license":"MIT","_id":"readmore-js@2.1.0","maintainers":[{"name":"jedfoster","email":"jed@jedfoster.com"}],"homepage":"https://github.com/jedfoster/Readmore.js","bugs":{"url":"https://github.com/jedfoster/Readmore.js/issues"},"dist":{"shasum":"0cf33cfc6f1f06af2a58e8e4fc4704db8c77fb57","tarball":"https://registry.npmjs.org/readmore-js/-/readmore-js-2.1.0.tgz","integrity":"sha512-XiWxCLn0rdWE4AeASPiy+nqqo2PuwamYALeTmXAchxeByFWEztTEf1fJ7AJ0V/mUEerU/azfUnDqJ9RX+Elfdw==","signatures":[{"sig":"MEUCIEUmeijWvwxmwMyoNuwS0PCabFt2gVVc9xK0nLdiLBVLAiEA9bwWcMvgf+5vpZemVIl2Cg08qBui/tNm6S8lwv7xd9g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"readmore.js","_from":".","_shasum":"0cf33cfc6f1f06af2a58e8e4fc4704db8c77fb57","gitHead":"f0c27b356dea9b54968bc2734cb9be0695d20c1a","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"jedfoster","email":"jed@jedfoster.com"},"repository":{"url":"git+https://github.com/jedfoster/Readmore.js.git","type":"git"},"_npmVersion":"3.3.6","description":"A lightweight jQuery plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.","directories":{},"_nodeVersion":"5.0.0","dependencies":{"jquery":"~2.1.4"},"devDependencies":{"gulp":"^3.9.0","gulp-rename":"^1.2.0","gulp-uglify":"^1.0.2"}},"2.2.1":{"name":"readmore-js","version":"2.2.1","keywords":["css","jquery","readmore","expand","collapse"],"author":{"name":"Jed Foster","email":"jed@jedfoster.com"},"license":"MIT","_id":"readmore-js@2.2.1","maintainers":[{"name":"jedfoster","email":"jed@jedfoster.com"}],"homepage":"https://github.com/jedfoster/Readmore.js","bugs":{"url":"https://github.com/jedfoster/Readmore.js/issues"},"dist":{"shasum":"ab75036c8a47b6ffa2d3d14cd527c7f479edc117","tarball":"https://registry.npmjs.org/readmore-js/-/readmore-js-2.2.1.tgz","fileCount":11,"integrity":"sha512-hbPP0nQpYYkAywCEZ8ozHivvhWyHic37KJ2IXrHES4qzjp0+nmw8R33MeyMAtXBZfXX4Es8cpd5JBVf9qj47+Q==","signatures":[{"sig":"MEQCICWJhfIttQk3WHi8YLx8IjM/QYU7aTO+YRQ34i1bMK9UAiAWIXbtPCQhAjeDzNgIAZZRO2YZVWji1rCLzQHCma1RFw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":89317,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbpsJtCRA9TVsSAnZWagAAMEsP/1ATyHEfl7tzhQFwITok\n4QHVv+X0J6FLFFrarrdVLVaPMW/V6I2QqAqfgVIKX7ck/guz/DMOm0Uarryq\nQybnuntLTQW1E6mKIJ+6zqc/Y0UQUKEPHY3TqKVB8rwQe6Ef7mtBV9yf2bxh\n2tsqZSLh45Rbm3EV/nV1sPsEYjjZtL0JxG3P+O/Nw0OpK2gxfuR0erT9TTVR\npl3f0Ui1ZP2jwtzo2NC1ihSyYZYjHAOQAMy4PzMPnmlY6q7EpC0QlU2rzn77\nuXUBppQqgFj/L8+4xjtaHKva/zHYEn8h8hlI8KvanCF2ptejdZhZ8hxL7uWe\nxNZHrIlAOycyPepSqvVbseQbeRU8EUvI9EM9BP0WMS6m2WhcVk0CRRko7zq5\n/FtGD3qR3kUT2WVsYZvMxO/y/nVVmm0XpnJ5RzhbfyjILr+GPoyKbxHJBjnR\nPJ9USkcB2oLjVUO9tf6Z1r+ImF7WxEV0WdNuLYtuKiKJtqdSIz5c3LWAj0Ze\n6tGu0DCU6hV4d8LvLcaN5JKfmxf5a1IRI62iLMrmjnpikLWUkWNsJQuN4xkz\n7xSIsu5xJ3nz19AO1XoymeFBcMIATOSss/wnHQpbX8FVp/yqyZ++0eW2nIK4\n8nTKG38l+E1klcZIFN+4uCQVP3jo7uOyZmWKD4VrLHG7cGqRCN1LlnslDfN2\niJmh\r\n=xdY6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"readmore.js","_from":".","_shasum":"ab75036c8a47b6ffa2d3d14cd527c7f479edc117","gitHead":"d3287ddbf49031533b67971f748b103fc818790b","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"./node_modules/gulp/bin/gulp.js compress"},"_npmUser":{"name":"jedfoster","email":"jed@jedfoster.com"},"repository":{"url":"git+https://github.com/jedfoster/Readmore.js.git","type":"git"},"_npmVersion":"3.10.10","description":"A lightweight jQuery plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.","directories":{},"_nodeVersion":"6.10.3","dependencies":{"jquery":">2.1.4"},"_hasShrinkwrap":false,"devDependencies":{"gulp":"^3.9.0","gulp-rename":"^1.2.0","gulp-uglify":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/readmore-js_2.2.1_1537655405061_0.4300982572138452","host":"s3://npm-registry-packages"}},"3.0.0-alpha-2":{"name":"readmore-js","version":"3.0.0-alpha-2","keywords":["css","jquery","readmore","expand","collapse"],"author":{"name":"Jed Foster","email":"jed@jedfoster.com"},"license":"MIT","_id":"readmore-js@3.0.0-alpha-2","maintainers":[{"name":"jedfoster","email":"jed@jedfoster.com"}],"homepage":"https://github.com/jedfoster/Readmore.js","bugs":{"url":"https://github.com/jedfoster/Readmore.js/issues"},"dist":{"shasum":"007cc82529292de3c462b95b59fac0c2958a0a3e","tarball":"https://registry.npmjs.org/readmore-js/-/readmore-js-3.0.0-alpha-2.tgz","fileCount":7,"integrity":"sha512-HoKZEYjo/qbwHrSli4fLIet31fNI7z218vhpCvaPjhWtcfccEaY5Lqvmuh3l6iWWJz558l1Gt5jyF08xBdhv7g==","signatures":[{"sig":"MEUCIAgOap//XhcXc7SgXAZYIKHe4rf2oznLJ8GHqE3TBZdZAiEAjQcx9rMXXcgmA0v03R4C1kELIwr/qTZMIe0hU3iSovY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":50249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbqZl8CRA9TVsSAnZWagAAyssP/1R655dSwPSDdTfttzJt\nPF8dAwrQB4vhnHfOAgymtgZndBwVxACBZ8Z9ghWiQxYrNZVxy/+nMnLHcZJ7\nq+ubAunfrKikYjkUdrz6vGuaj5yxP7O3rfPqN7Jkk8R6aSNQL3t/snIgkt+T\nKzmjHMyCVjUmSvMFRwWl4G6hH1FDq20LMaxcFX6EQagU2R3F92ArKLTtugO5\ne0ph02OsQ7y9/G4ww9/1Cs5B5IOn1TOHPjj9oHrwgmg3hMAFghiCGSbKxJfn\nkEMX57afdYq5YtDR4V1G/mFYWLykOaIvPlAyt0ykFrxeFVzW+4H7n6EaG0Fv\nVc/9Jg2Oehg257wMikyCFL+3RqW8qm0QWRnF3LAzpXmHI7gEKjcFQbUOFeXn\nCc4yBDK6DrYiBqi5r7nDBGDv5TRkA3Cg4aISGOAbjOl5VB5G8HWaek5JA9HF\nTXcFhjeKz0typKU0wvtl1Zyrpfm656bGNe6VxjxTgV7EfGqMT0vf65CPNmNc\nZBkj0Yclz13HZ5Wx6HJOlq0jB3xwkl6JtaZgni9PaGJ4k5EjKrZr1Rdc5JZH\n54xYZut+rg2RxTkKowAP7gWYF6vESygwc7YOj2z5hDaI1O4AtKqcU1dNEwn9\nNy60QQSJMpjsVj0TTpm0AwvsRSkK3K5qPVTR43pzeNDCQFDiGmNPiQe5NGyG\nj/Ia\r\n=4MUZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"readmore.js","_from":".","babel":{"plugins":[["transform-define","./constants.js"]],"presets":["env"]},"_shasum":"007cc82529292de3c462b95b59fac0c2958a0a3e","gitHead":"6717ab31d31c8f2aab3cee5e4315aa5703d4bb7d","scripts":{"lint":"./node_modules/eslint/bin/eslint.js --cache .","test":"NODE_ENV=test ./node_modules/mocha/bin/mocha --compilers js:babel-core/register","build":"rm -rf ./dist/* && ./node_modules/webpack/bin/webpack.js && cp src/readmore.js dist/readmore.es6.js","start":"./node_modules/webpack-dev-server/bin/webpack-dev-server.js","watch":"./node_modules/webpack/bin/webpack.js --watch","compress":"echo \"Error: no compress script\" && exit 1 # ./node_modules/uglify-js/bin/uglifyjs ./build/js/app.js -cmv --screw-ie8 -o ./build/js/app.js","precommit":"npm run lint #&& npm run test","prepublish":"npm run build"},"_npmUser":{"name":"jedfoster","email":"jed@jedfoster.com"},"repository":{"url":"git+https://github.com/jedfoster/Readmore.js.git","type":"git"},"_npmVersion":"3.10.10","description":"A lightweight JavaScript plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.","directories":{},"_nodeVersion":"6.10.3","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^3.5.3","eslint":"^5.5.0","webpack":"^3.6.0","uglify-js":"^3.2.0","babel-core":"^6.26.0","file-loader":"^1.1.5","babel-eslint":"^9.0.0","babel-loader":"^7.1.2","babel-preset-env":"^1.6.0","webpack-dev-server":"^2.9.1","eslint-plugin-import":"^2.14.0","eslint-config-airbnb-base":"^13.1.0","babel-plugin-transform-define":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/readmore-js_3.0.0-alpha-2_1537841531498_0.3224943851538946","host":"s3://npm-registry-packages"}},"3.0.0-alpha-4":{"name":"readmore-js","version":"3.0.0-alpha-4","keywords":["css","jquery","readmore","expand","collapse"],"author":{"name":"Jed Foster","email":"jed@jedfoster.com"},"license":"MIT","_id":"readmore-js@3.0.0-alpha-4","maintainers":[{"name":"jedfoster","email":"jed@jedfoster.com"}],"homepage":"https://github.com/jedfoster/Readmore.js","bugs":{"url":"https://github.com/jedfoster/Readmore.js/issues"},"dist":{"shasum":"f3776f09cc3f03843952fe69534b4c4c45a3fbff","tarball":"https://registry.npmjs.org/readmore-js/-/readmore-js-3.0.0-alpha-4.tgz","fileCount":7,"integrity":"sha512-P60U6qr/QcxSpBZ9LUvQ4niqfIDjto7Ogx2b7LVStBhcyJ5vBVN15avOsggtoqaGCitPeQy/B6RT5Nruien+Bw==","signatures":[{"sig":"MEQCIHx2Mz7GqxpbJyClC9MZjFwvz36XrPcmVH9EUaVlyariAiA2AU0AebASTNEv8/ksb+i3SnggFjM+rGUBz0CCD8DqiA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":63645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJccIsDCRA9TVsSAnZWagAAZhMP/i4rLdhpK3luk8YBGuBE\neeEyHiLYC2cUOV3Gdc4xQKh048TQhFuIgfWcnENnQzyX/n3aEkVH/gY/sbe6\nYgY5nx4BOwB0wAOgyfiW86jXTQfbiYqxGT5VbkjIRhk9ZS3jsnZE7qvFMI6e\nBKZIQjJjj2LTaDSVL1ROLwUgSXC3Y17DhsUoFjfuykiNXvfQmor6dhG3HwP3\nCHq5Twwc50F3YU5qINQMfpX39V2/a+K4N9z0UwsVE56NnqYcqVG+9xjmQ5Fv\nEMSNdOuxQAFTDvmor4tob2w/8AqO7cPxv+fhyZ8iBLCLceQ5U40EYe/1je6v\n0upUFpTQ069Uc2nExUJkdkx+0SqNhUoxqmZxvkKa4UHxuNf4A6hyXeUa8/9o\ngP69EGsvR+4ZZApXlR3YSmKqW4KiwkV41ICV6IC1YFjgpsHunDVx6IIOpvZr\nxgG7KZY7DXY464jWAKzsUryW3cF3CrNoB7nimwyWRtvWaGLPqtY6pR/wisKq\n92i+t0hKNwxU9rnZXyIC10yW3q+riVQbJ+reG8ukklXr0fhoRw1YNXCZntt3\nAUZOot1Yui0AED36HDNhNQ4KWT1wSlUIpko/8gVeaIR47fMJEPNwsJrynU9R\nf29yAqW8zmS8ng14BHVUefPuNzwwIjFMw5C9tQMKYJOaP4x6iVybgq6YcpLV\n8urj\r\n=bk2l\r\n-----END PGP SIGNATURE-----\r\n"},"main":"readmore.js","_from":".","babel":{"plugins":[["transform-define","./constants.js"]],"presets":["env"]},"_shasum":"f3776f09cc3f03843952fe69534b4c4c45a3fbff","gitHead":"db031da9fc64b3e71e6c0f097545d33e5b5e1984","scripts":{"lint":"./node_modules/eslint/bin/eslint.js --cache .","test":"NODE_ENV=test ./node_modules/mocha/bin/mocha --compilers js:babel-core/register","build":"rm -rf ./dist/* && ./node_modules/webpack/bin/webpack.js && cp src/readmore.js dist/readmore.es6.js","start":"./node_modules/webpack-dev-server/bin/webpack-dev-server.js","watch":"./node_modules/webpack/bin/webpack.js --watch","compress":"echo \"Error: no compress script\" && exit 1 # ./node_modules/uglify-js/bin/uglifyjs ./build/js/app.js -cmv --screw-ie8 -o ./build/js/app.js","precommit":"npm run lint #&& npm run test","prepublish":"npm run build"},"_npmUser":{"name":"jedfoster","email":"jed@jedfoster.com"},"repository":{"url":"git+https://github.com/jedfoster/Readmore.js.git","type":"git"},"_npmVersion":"3.10.10","description":"A lightweight JavaScript plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.","directories":{},"_nodeVersion":"6.10.3","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^3.5.3","eslint":"^5.5.0","webpack":"^3.6.0","uglify-js":"^3.2.0","babel-core":"^6.26.0","file-loader":"^1.1.5","babel-eslint":"^9.0.0","babel-loader":"^7.1.2","babel-preset-env":"^1.6.0","webpack-dev-server":"^2.9.1","eslint-plugin-import":"^2.14.0","eslint-config-airbnb-base":"^13.1.0","babel-plugin-transform-define":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/readmore-js_3.0.0-alpha-4_1550879490680_0.6658583244214078","host":"s3://npm-registry-packages"}},"3.0.0-alpha-5":{"name":"readmore-js","version":"3.0.0-alpha-5","keywords":["css","jquery","readmore","expand","collapse"],"author":{"name":"Jed Foster","email":"jed@jedfoster.com"},"license":"MIT","_id":"readmore-js@3.0.0-alpha-5","maintainers":[{"name":"jedfoster","email":"jed@jedfoster.com"}],"homepage":"https://github.com/jedfoster/Readmore.js","bugs":{"url":"https://github.com/jedfoster/Readmore.js/issues"},"dist":{"shasum":"91abe3f286330bb8ec339b02a7a8432f4d00ccc0","tarball":"https://registry.npmjs.org/readmore-js/-/readmore-js-3.0.0-alpha-5.tgz","fileCount":7,"integrity":"sha512-wgPzSfCRNSa4P3KElDPeKcigM9aE8GJoOfROU9SzpZ05jEpLu/5qX47MLyLF7sGZrT7Ddy3rFYhnTkXlOBTcOA==","signatures":[{"sig":"MEYCIQDnHicCe5lvZh27P7itwvaaFTPZ08Q32YYQVL7GUz/g6wIhAInBAjrgMNOsTba+QpFp9+HBuRlmBT+PlU8nBNHjfbfE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66192,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJccKOdCRA9TVsSAnZWagAAESIP/0eOdbTfzVuKwlTxlsh6\nuT8vZoiH+meI4MaAbR30Lx+viiwTdOG315zWdZWXfwrxKGDZDWSxj/WQNV9O\npHW45/IH3iwIS8GK/VZ7K+eFGkCHyYdN1yZ0yNE/O97Q7tDbpV6kiWsrzMgC\nXOdBNnG9zWl2dOVJuA1MOsyBDIuWYQAn+hZV0gr4z1lO4ZPVBKTncyajIKxF\nYKz7GqGx/at4L2HbM2xWUjNZRtneYjDaDcsLNfBcRHdHY1IF9eGldkUF1NGk\nQfjoKmfYyH+4xnfTT/JiXdvaQCla6bxjCjWgDP/T1u5X1BTS83ZcxaL8ZtNd\nMD9HFRp6yyF3x6uTnP6OqTQ+EoIR+W19EOtXzAh/mObfoKjQ1T/GtqgVOktB\n7V7gghilN13t3kVSDQZ6SQNYlRe9Mgh8DvFc6ou0eIN7ZcXMaoIGCis/VI+/\nKsAkGGia8l1JrwDemmehfJLWzoo8p4Q4rGhY/v/nW+9iNUsKSZviZVxUMibA\n7zO4u1l75n14aGJL9piovdLrHmsGftt8Wa0AAKnGaexMnhXO4Q9yg5JG+ykf\n4v1z0tMUOngRt3c4+O7rBuO2ZGtSvVQUHc9pH+N0GstKIDDw1f+yVTtiwze4\n4vqwb97stNdGtT74BamYXAl+uXjp5pFjVoSIWzK+qc447wtHj5B5cJWnkrmw\n8q4Z\r\n=XyYc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"readmore.js","_from":".","babel":{"plugins":[["transform-define","./constants.js"]],"presets":["env"]},"_shasum":"91abe3f286330bb8ec339b02a7a8432f4d00ccc0","gitHead":"e29fc89627991d85144b78ec45de85f797655dc0","scripts":{"lint":"./node_modules/eslint/bin/eslint.js --cache .","test":"NODE_ENV=test ./node_modules/mocha/bin/mocha --compilers js:babel-core/register","build":"rm -rf ./dist/* && ./node_modules/webpack/bin/webpack.js && cp src/readmore.js dist/readmore.es6.js","start":"./node_modules/webpack-dev-server/bin/webpack-dev-server.js","watch":"./node_modules/webpack/bin/webpack.js --watch","compress":"echo \"Error: no compress script\" && exit 1 # ./node_modules/uglify-js/bin/uglifyjs ./build/js/app.js -cmv --screw-ie8 -o ./build/js/app.js","precommit":"npm run lint #&& npm run test","prepublish":"npm run build"},"_npmUser":{"name":"jedfoster","email":"jed@jedfoster.com"},"repository":{"url":"git+https://github.com/jedfoster/Readmore.js.git","type":"git"},"_npmVersion":"3.10.10","description":"A lightweight JavaScript plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.","directories":{},"_nodeVersion":"6.10.3","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^3.5.3","eslint":"^5.5.0","webpack":"^3.6.0","uglify-js":"^3.2.0","babel-core":"^6.26.0","file-loader":"^1.1.5","babel-eslint":"^9.0.0","babel-loader":"^7.1.2","babel-preset-env":"^1.6.0","webpack-dev-server":"^2.9.1","eslint-plugin-import":"^2.14.0","eslint-config-airbnb-base":"^13.1.0","babel-plugin-transform-define":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/readmore-js_3.0.0-alpha-5_1550885789090_0.5689709157002747","host":"s3://npm-registry-packages"}},"3.0.0-alpha-6":{"name":"readmore-js","version":"3.0.0-alpha-6","keywords":["css","jquery","readmore","expand","collapse"],"author":{"name":"Jed Foster","email":"jed@jedfoster.com"},"license":"MIT","_id":"readmore-js@3.0.0-alpha-6","maintainers":[{"name":"jedfoster","email":"jed@jedfoster.com"}],"homepage":"https://github.com/jedfoster/Readmore.js","bugs":{"url":"https://github.com/jedfoster/Readmore.js/issues"},"dist":{"shasum":"4bbbcd946f34ca272b2fc2ce2f579e49c607684b","tarball":"https://registry.npmjs.org/readmore-js/-/readmore-js-3.0.0-alpha-6.tgz","fileCount":7,"integrity":"sha512-up29Ffc8uNuc36CHNRtcPxDzmXexT1xmeYTYm4+HwqtaL8CLQ0pkIbxwPYezoZMKOqgopPyU9hzSwgu0CSZWfA==","signatures":[{"sig":"MEQCIE9jUmjLVJ3Rr8qrgZJ0w3iKl5W/GYcZu7FkNdRd58d3AiBaGLV4I0tYWEP5EdWTgUVWfdniwmBcFjLvg/QUT2bYdg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67254,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJccdKwCRA9TVsSAnZWagAA+tUQAI3DHetz6TrHWhJsXmiB\nUxoEvubKDJWhe3q1gAcRBruOUy0Cr0fkdgEZTtRuE84s60qrFcl1MTCM/nWs\nknUPNdUgprkbnJiBLz0JloR/l5MJPRpy3j/jGuq1to3AnKwAwmRyxhny7RFN\nUKbo0n2Srrhcdtv7bG2BjBksZJYR2aRthJaCblFKIpNvCyj7JAE18y8CG/Qs\nkfc63moPJLl9TFAS93/kzSAJP5+5JLjOSOcB2cIlgu2AoeMn1HeIDLOOPKrk\nrfIUYV9N6gtS8EFPMDFdj00q5U2Rdyd/JjmxG6snrahITCMOblOFCB220O/J\n0TbKjt6Uj7AeVvf07ajmWbWUSYC2dRrt+Y8UaZmZqK0TTru5hFa8hwms1Rls\nwewnfVp1i/OThFcYTsrQQtPIC7D+1QCbnA8jPAb9DqHJ2jXZSoWcX8kwa+Vi\n3ymNTxAIBdsp/NjU0wBoF7lMAfex/DLT0uSKVBsGNivWaV7gVxkylbkxoZyJ\nfYYD3W5/4U3FUll6JN7iXJsI+zA7BS7eBGaBpzylrNATDlx57YPcTF2QhMCx\n/01HNK2eOm7zDy//YTrXW7p3SzddKfIHsbV9/3e6msr9nVW4FGo5t4hp9sYX\nBtCUp8WrJwjCQgwxT/A0R3W1b9P4ui9q0PrTl/XDZKbH8Am8oC53XNJeewCt\nESEd\r\n=DyJP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/readmore.js","_from":".","babel":{"plugins":[["transform-define","./constants.js"]],"presets":["env"]},"module":"dist/readmore.es6.js","_shasum":"4bbbcd946f34ca272b2fc2ce2f579e49c607684b","gitHead":"50d62a6b0ae34c49db8f8e848dd79ffb48511513","scripts":{"lint":"./node_modules/eslint/bin/eslint.js --cache .","test":"NODE_ENV=test ./node_modules/mocha/bin/mocha --compilers js:babel-core/register","build":"rm -rf ./dist/* && ./node_modules/webpack/bin/webpack.js && cp src/readmore.js dist/readmore.es6.js","start":"./node_modules/webpack-dev-server/bin/webpack-dev-server.js","watch":"./node_modules/webpack/bin/webpack.js --watch","compress":"echo \"Error: no compress script\" && exit 1 # ./node_modules/uglify-js/bin/uglifyjs ./build/js/app.js -cmv --screw-ie8 -o ./build/js/app.js","precommit":"npm run lint #&& npm run test","prepublish":"npm run build"},"_npmUser":{"name":"jedfoster","email":"jed@jedfoster.com"},"repository":{"url":"git+https://github.com/jedfoster/Readmore.js.git","type":"git"},"_npmVersion":"3.10.10","description":"A lightweight JavaScript plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.","directories":{},"_nodeVersion":"6.10.3","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^3.5.3","eslint":"^5.5.0","webpack":"^3.6.0","uglify-js":"^3.2.0","babel-core":"^6.26.0","file-loader":"^1.1.5","babel-eslint":"^9.0.0","babel-loader":"^7.1.2","babel-preset-env":"^1.6.0","webpack-dev-server":"^2.9.1","eslint-plugin-import":"^2.14.0","eslint-config-airbnb-base":"^13.1.0","babel-plugin-transform-define":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/readmore-js_3.0.0-alpha-6_1550963375651_0.978038874433899","host":"s3://npm-registry-packages"}},"3.0.0-beta-1":{"name":"readmore-js","version":"3.0.0-beta-1","keywords":["css","jquery","readmore","expand","collapse"],"author":{"name":"Jed Foster","email":"jed@jedfoster.com"},"license":"MIT","_id":"readmore-js@3.0.0-beta-1","maintainers":[{"name":"jedfoster","email":"jed@jedfoster.com"}],"homepage":"https://github.com/jedfoster/Readmore.js","bugs":{"url":"https://github.com/jedfoster/Readmore.js/issues"},"dist":{"shasum":"730172e6dd21e32b5d4774b4ebc9f849eb6b3f62","tarball":"https://registry.npmjs.org/readmore-js/-/readmore-js-3.0.0-beta-1.tgz","fileCount":7,"integrity":"sha512-yfaoEghzR2V2j8okpOg9D12AttQ9odVLVx51oKKpsk/GTbhIt6O6mprZEN1MZxz69Waye3catBV7mXXkg9sC5Q==","signatures":[{"sig":"MEUCICX7TDadPX9BcPkR65JV5JCVx9b2McJsf/jBbNH7CCJvAiEAi298LK4INFR2L9K6dqdEO9winc99uNkMPakF130q2iY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":76695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcjT7jCRA9TVsSAnZWagAAUPkQAJvNo/Xlxt5sMX6KNsof\nZFofP0+xr3hgi1xbaNT3YZoy7an6b8RF8+wqdoXIcNF81OmuCnbMXjQ0YQHF\nn3ilAPRonj7EqCkjAErbXX2aMWkVQINnwGIOPicS2i1XGE8JxrZOAnpswhUM\n1sEy79qaoJUkB08svNunyU8gmiVEEOcQPRb0toKSAxsfSoxbYXAv5tDjRMIE\n/0kuDE2NxZGBoG3s6bE+YysR9OCdJhRBMeUzVNldqwo0w4GDCEAjVG8F2k7q\nVcFPnML89l5mMsMFup1yGbR463cUQsN2mpH0q9mShIUdvtGlhvkuDcsLRSlP\nUOIC2OXwaRYNi62uuTUhcXAfCOUkgdCyGxjrdlNFnVXV7rq/jMrJFrMDvdyH\nhZ8IoZcrXMHxkz64SaWTCDnGOV/6YO3kut/Jqhwt7cUGdo8tCs5sEGwrEVX6\n3rP6E0bNRmw8kQQlaBE4ierGZF1uWTk1c/NpSkZyqhGeSmGwcZG2+hzCu3Wn\nfMl2t3ear3kem4Mw+/83dxdTkY39tudX9KTWoO31kDAnBqJzjT9/e3Q1Gn/L\nE2xmrPHbXODBLOChASDo4HZ5kaD5zMmOHjqaFM28CAG3kRU7i91WE3uFNd6t\nsDt2+iO/8RCS+lqV8db+xe2Av304TcN+xqrYId9CxxxtP4p6/ZHl0bKixOqj\nLl3j\r\n=Fcep\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/readmore.js","_from":".","module":"dist/readmore.es6.js","_shasum":"730172e6dd21e32b5d4774b4ebc9f849eb6b3f62","gitHead":"cbe9358039085a66a96e71b3b1ead903a4525102","scripts":{"lint":"./node_modules/eslint/bin/eslint.js --cache .","test":"NODE_ENV=test ./node_modules/mocha/bin/mocha --compilers js:babel-core/register","build":"rm -rf ./dist/* && ./node_modules/webpack/bin/webpack.js","start":"./node_modules/webpack-dev-server/bin/webpack-dev-server.js","watch":"./node_modules/webpack/bin/webpack.js --watch","compress":"echo \"Error: no compress script\" && exit 1 # ./node_modules/uglify-js/bin/uglifyjs ./build/js/app.js -cmv --screw-ie8 -o ./build/js/app.js","precommit":"npm run lint #&& npm run test","prepublish":"npm run build"},"_npmUser":{"name":"jedfoster","email":"jed@jedfoster.com"},"repository":{"url":"git+https://github.com/jedfoster/Readmore.js.git","type":"git"},"_npmVersion":"3.10.10","description":"A lightweight JavaScript plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.","directories":{},"_nodeVersion":"6.10.3","dependencies":{"@babel/runtime":"^7.3.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^3.5.3","eslint":"^5.5.0","core-js":"^2.6.5","webpack":"^4.29.5","uglify-js":"^3.2.0","@babel/cli":"^7.2.3","@babel/core":"^7.3.3","file-loader":"^1.1.5","webpack-cli":"^3.2.3","babel-eslint":"^10.0.1","babel-loader":"^8.0.5","@babel/polyfill":"^7.2.5","@babel/preset-env":"^7.3.1","webpack-dev-server":"^3.2.0","copy-webpack-plugin":"^5.0.0","regenerator-runtime":"^0.13.1","eslint-plugin-import":"^2.14.0","eslint-config-airbnb-base":"^13.1.0","babel-plugin-transform-define":"^1.3.1","@babel/plugin-transform-runtime":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/readmore-js_3.0.0-beta-1_1552760546626_0.08271315623697628","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"readmore-js","version":"3.0.0","keywords":["css","readmore","expand","collapse"],"author":{"name":"Jed Foster","email":"jed@jedfoster.com"},"license":"MIT","_id":"readmore-js@3.0.0","maintainers":[{"name":"jedfoster","email":"jed@jedfoster.com"}],"homepage":"https://github.com/jedfoster/Readmore.js","bugs":{"url":"https://github.com/jedfoster/Readmore.js/issues"},"dist":{"shasum":"23464b54d8bc68ce9ee6915a0277325d2d2336ed","tarball":"https://registry.npmjs.org/readmore-js/-/readmore-js-3.0.0.tgz","fileCount":6,"integrity":"sha512-U3Q1n7HIqAkuZ0GtQsYzDFxiFZamdsINelJeD4AdYIgAjVpVsJ/WYb2B99d/nRtjRbZpnYp8bc3bzkZ0W8Fisw==","signatures":[{"sig":"MEUCIHb94K+38ye+3Pf/voSEb0iYowdF2KU3AgXthBPy4832AiEApUeTg81Nr0YLevAC8aiGSSUQTMMXfJJDlUHNokT0qB0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDpXjck9S2ULqS5H3VEwLHk5eWHBCjHu8wMP8flQVIPKAIhAPEdKn1nIYKYqgzAM2VNsiIchmONl0+lZninvvtNiZR6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":71194},"main":"dist/readmore.js","module":"dist/readmore.es6.js","gitHead":"c3c6620061a36b7b79da4e5229e4a1089d3471a1","scripts":{"lint":"eslint --cache .","test":"npm run test:unit && npm run test:e2e","build":"rm -rf ./dist/* && npm-run-all -p build:*","serve":"http-server -p 9000 dist/","start":"npm-run-all -p watch serve","watch":"npm-run-all -p watch:*","prepare":"husky","build:js":"rollup --config rollup.config.mjs","test:e2e":"npm run build && playwright test","watch:js":"npm run build:js -- --watch","test:unit":"node --test --experimental-test-coverage --test-coverage-include=\"src/logic.js\" --test-coverage-lines=100 --test-coverage-branches=100 --test-coverage-functions=100 \"test/**/*.test.js\"","build:html":"cpy \"src/*.html\" dist/","watch:html":"nodemon --watch src -e html -x \"npm run build:html\"","test:e2e:ui":"playwright test --ui","prepublishOnly":"npm run build"},"_npmUser":{"name":"jedfoster","email":"jed@jedfoster.com"},"devEngines":{"runtime":{"name":"node","version":">=24"}},"repository":{"url":"git+https://github.com/jedfoster/Readmore.js.git","type":"git"},"_npmVersion":"11.19.0","description":"A lightweight JavaScript plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.","directories":{},"lint-staged":{"*.{js,mjs}":["eslint --fix"],"*.{js,mjs,json}":["prettier --write"]},"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","eslint":"^10.14.0","rollup":"^4.0.0","cpy-cli":"^7.0.0","globals":"^17.14.0","nodemon":"^3.1.0","prettier":"^3.10.0","@eslint/js":"^10.0.1","http-server":"^14.1.1","lint-staged":"^17.6.0","npm-run-all2":"^9.0.0","@playwright/test":"^1.65.0","prettier-plugin-curly":"^0.4.2","@rollup/plugin-replace":"^6.0.3","eslint-config-prettier":"^10.1.8","@stylistic/eslint-plugin":"^5.10.0","prettier-plugin-brace-style":"^0.10.4","@trivago/prettier-plugin-sort-imports":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/readmore-js_3.0.0_1794514944080_0.38309661971795206","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"name":"readmore-js","version":"3.0.1","keywords":["css","readmore","expand","collapse"],"author":{"name":"Jed Foster","email":"jed@jedfoster.com"},"license":"MIT","_id":"readmore-js@3.0.1","maintainers":[{"name":"jedfoster","email":"jed@jedfoster.com"}],"homepage":"https://github.com/jedfoster/Readmore.js","bugs":{"url":"https://github.com/jedfoster/Readmore.js/issues"},"dist":{"shasum":"ef3d92b9dff42ed5cc71d252ae4d32930550d05d","tarball":"https://registry.npmjs.org/readmore-js/-/readmore-js-3.0.1.tgz","fileCount":6,"integrity":"sha512-TC4O0ouczkbGtQFvL2Zh3vA9YT34vN0G4AOwafO6KF784+xmZE7N+f3BBmWbxTpy0SkX+97hndYkcG1Dopa27g==","signatures":[{"sig":"MEYCIQCkNw+/e2c/uYsJNAj4NpyEC1L9EzdKEKjtH0MlFnmJtgIhAM7ZjQYbE1aA2a7vPgFxobZ8mBhpQ0VRJeU1Yy3myspW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCICr0pHA/5W+dbD+Jh+Bnzy3U4lbhGJFnrXY7gTIZkWZwAiAQV9F6GL9gMWNwqhATvtyM/ozqQqUL5GT+1piOpmbl+w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72165},"main":"dist/readmore.js","module":"dist/readmore.es6.js","gitHead":"f5f2a96e4597dae6412c61c10ddf94c0f323aef1","scripts":{"lint":"eslint --cache .","test":"npm run test:unit && npm run test:e2e","build":"rm -rf ./dist/* && npm-run-all -p build:*","serve":"http-server -p 9000 dist/","start":"npm-run-all -p watch serve","watch":"npm-run-all -p watch:*","prepare":"husky","build:js":"rollup --config rollup.config.mjs","test:e2e":"npm run build && playwright test","watch:js":"npm run build:js -- --watch","test:unit":"node --test --experimental-test-coverage --test-coverage-include=\"src/logic.js\" --test-coverage-lines=100 --test-coverage-branches=100 --test-coverage-functions=100 \"test/**/*.test.js\"","build:html":"cpy \"src/*.html\" dist/","watch:html":"nodemon --watch src -e html -x \"npm run build:html\"","test:e2e:ui":"playwright test --ui","prepublishOnly":"npm run build"},"_npmUser":{"name":"jedfoster","email":"jed@jedfoster.com"},"devEngines":{"runtime":{"name":"node","version":">=24"}},"repository":{"url":"git+https://github.com/jedfoster/Readmore.js.git","type":"git"},"_npmVersion":"11.19.0","description":"A lightweight JavaScript plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.","directories":{},"lint-staged":{"*.{js,mjs}":["eslint --fix"],"*.{js,mjs,json}":["prettier --write"]},"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","eslint":"^10.14.0","rollup":"^4.0.0","cpy-cli":"^7.0.0","globals":"^17.14.0","nodemon":"^3.1.0","prettier":"^3.10.0","@eslint/js":"^10.0.1","http-server":"^14.1.1","lint-staged":"^17.6.0","npm-run-all2":"^9.0.0","@playwright/test":"^1.65.0","prettier-plugin-curly":"^0.4.2","@rollup/plugin-replace":"^6.0.3","eslint-config-prettier":"^10.1.8","@stylistic/eslint-plugin":"^5.10.0","prettier-plugin-brace-style":"^0.10.4","@trivago/prettier-plugin-sort-imports":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/readmore-js_3.0.1_1794516931748_0.7282781585231543","host":"s3://npm-registry-packages-npm-production"}},"3.1.0":{"_id":"readmore-js@3.1.0","bugs":{"url":"https://github.com/jedfoster/Readmore.js/issues"},"dist":{"shasum":"f5da08f15dd0049952165c6cbf258d12054b8af3","tarball":"https://registry.npmjs.org/readmore-js/-/readmore-js-3.1.0.tgz","fileCount":6,"integrity":"sha512-KthdLD9tV4rUi1aT6uQK2VhGvwS/0oFYumuM9q+aWs5j5u4g//Uset4S29Qy5PanRRTwcgwdzZW1uq6htpmwqg==","signatures":[{"sig":"MEUCIA7i7Z5w5N90Kwu2CQsJYId6whENiOa5wjW440YJ5sGKAiEA7CpACcEkmthDSF9Em7qDZzQKNmq0VJVqzeUPvEzuy1c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDCFYyNyEIW27amnFWlq0ruD8hc+JKJmvABZ626t8RoZAIhALaW8sJkSq0D2WMc2PpZST+632uOtha1/AgO7QKAjF03"}],"unpackedSize":81881},"main":"dist/readmore.js","name":"readmore-js","author":{"name":"Jed Foster","email":"jed@jedfoster.com"},"module":"dist/readmore.es6.js","gitHead":"7af4ad09b182c4e72bdda8a0a9fbcffde9dc5a0f","license":"MIT","scripts":{"lint":"eslint --cache .","test":"npm run test:unit && npm run test:e2e","build":"rm -rf ./dist/* && npm-run-all -p build:*","serve":"http-server -p 9000 dist/","start":"npm-run-all -p watch serve","watch":"npm-run-all -p watch:*","prepare":"husky","build:js":"rollup --config rollup.config.mjs","test:e2e":"npm run build && playwright test","watch:js":"npm run build:js -- --watch","test:unit":"node --test --experimental-test-coverage --test-coverage-include=\"src/logic.js\" --test-coverage-lines=100 --test-coverage-branches=100 --test-coverage-functions=100 \"test/**/*.test.js\"","build:html":"cpy \"src/*.html\" dist/","watch:html":"nodemon --watch src -e html -x \"npm run build:html\"","test:e2e:ui":"playwright test --ui","prepublishOnly":"npm run build"},"version":"3.1.0","_npmUser":{"name":"jedfoster","email":"jed@jedfoster.com"},"homepage":"https://github.com/jedfoster/Readmore.js","keywords":["css","readmore","expand","collapse"],"devEngines":{"runtime":{"name":"node","version":">=24"}},"repository":{"url":"git+https://github.com/jedfoster/Readmore.js.git","type":"git"},"_npmVersion":"11.19.0","description":"A lightweight JavaScript plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.","directories":{},"lint-staged":{"*.{js,mjs}":["eslint --fix"],"*.{js,mjs,json}":["prettier --write"]},"maintainers":[{"name":"jedfoster","email":"jed@jedfoster.com"}],"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","eslint":"^10.14.0","rollup":"^4.0.0","cpy-cli":"^7.0.0","globals":"^17.14.0","nodemon":"^3.1.0","prettier":"^3.10.0","@eslint/js":"^10.0.1","http-server":"^14.1.1","lint-staged":"^17.6.0","npm-run-all2":"^9.0.0","@playwright/test":"^1.65.0","prettier-plugin-curly":"^0.4.2","@rollup/plugin-replace":"^6.0.3","eslint-config-prettier":"^10.1.8","@stylistic/eslint-plugin":"^5.10.0","prettier-plugin-brace-style":"^0.10.4","@trivago/prettier-plugin-sort-imports":"^6.0.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/readmore-js_3.1.0_1794525967819_0.8792353422185178"}}},"time":{"created":"2015-11-01T03:55:35.167Z","modified":"2026-11-12T23:26:08.113Z","2.0.4":"2015-11-01T03:55:35.167Z","2.1.0":"2015-11-01T07:06:12.499Z","2.2.1":"2018-09-22T22:30:05.151Z","3.0.0-alpha-1":"2018-09-25T02:00:44.375Z","3.0.0-alpha-2":"2018-09-25T02:12:11.700Z","3.0.0-alpha-3":"2019-02-22T23:47:32.834Z","3.0.0-alpha-4":"2019-02-22T23:51:30.860Z","3.0.0-alpha-5":"2019-02-23T01:36:29.280Z","3.0.0-alpha-6":"2019-02-23T23:09:35.868Z","3.0.0-beta-1":"2019-03-16T18:22:26.787Z","3.0.0":"2026-11-12T20:22:24.178Z","3.0.1":"2026-11-12T20:55:31.850Z","3.1.0":"2026-11-12T23:26:07.928Z"},"bugs":{"url":"https://github.com/jedfoster/Readmore.js/issues"},"author":{"name":"Jed Foster","email":"jed@jedfoster.com"},"license":"MIT","homepage":"https://github.com/jedfoster/Readmore.js","keywords":["css","readmore","expand","collapse"],"repository":{"url":"git+https://github.com/jedfoster/Readmore.js.git","type":"git"},"description":"A lightweight JavaScript plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.","maintainers":[{"name":"jedfoster","email":"jed@jedfoster.com"}],"readme":"# Readmore.js\n\nA smooth, responsive JavaScript plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.\n\nThe markup Readmore.js requires is so simple, you can probably use it with your existing HTML—there's no need for complicated sets of `div`s or hardcoded classes, just call `new Readmore()` on the element containing your block of text and Readmore.js takes care of the rest. Readmore.js works well on mobile and plays nicely with responsive designs, too.\n\nReadmore.js has no external dependencies (no more jQuery—yay!) and works in evergreen browsers (current Chrome, Firefox, Safari and Edge). Internet Explorer is not supported.\n\n\n## Install\n\nInstall Readmore.js with npm:\n\n```\n$ npm install readmore-js\n```\n\nThen include it in your HTML:\n\n```html\n<script src=\"/node_modules/readmore-js/dist/readmore.js\"></script>\n```\n\nOr, with a bundler:\n\n```javascript\nimport Readmore from 'readmore-js';\n\n// or, with CommonJS\nconst Readmore = require('readmore-js');\n```\n\n\n## Usage\n\n```javascript\nnew Readmore('article');\n```\n\nIt's that simple. You can change the speed of the animation, the height of the collapsed block, and the open and close elements.\n\n```javascript\nnew Readmore('article', {\n  speed: 75,\n  lessLink: '<a href=\"#\">Read less</a>'\n});\n```\n\n\n## Options\n\n* `speed: 100` in milliseconds. The animation is turned off for visitors who prefer reduced motion (`prefers-reduced-motion: reduce`), checked on every toggle\n* `collapsedHeight: 200` in pixels; also accepts a function that receives the block and returns a height in pixels. It's called when the block is set up and whenever it's re-measured, and can return `Infinity` to leave the block unfolded (above a breakpoint, say). A function wins over a CSS `max-height`, which wins over a number\n* `heightMargin: 16` in pixels, avoids collapsing blocks that are only slightly larger than `collapsedHeight`\n* `moreLink: '<a href=\"#\">Read More</a>'` HTML string for the \"more\" toggle link; also accepts a callback function that returns an HTML string\n* `lessLink: '<a href=\"#\">Close</a>'` HTML string for the \"less\" toggle link; also accepts a callback function that returns an HTML string\n* `embedCSS: true` insert the `blockCSS` rule dynamically, set this to `false` to style blocks in your own stylesheet instead\n* `blockCSS: 'display: block; width: 100%;'` sets the styling of the blocks, ignored if `embedCSS` is `false`\n* `startOpen: false` do not immediately truncate, start in the fully opened position\n* `sourceOrder: 'after'` the toggle link is inserted `'before'` or `'after'` the block\n* `blockProcessed: function() {}` called once per block during initialization after Readmore.js has processed the block, but not when a later re-measure folds or unfolds it\n* `beforeToggle: function() {}` called after a more or less link is clicked, but *before* the block is collapsed or expanded\n* `afterToggle: function() {}` called *after* the block is collapsed or expanded\n\nIf the element has a `max-height` CSS property, Readmore.js will use that value rather than the value of a numeric `collapsedHeight` option. The `max-height` is read again each time the block is re-measured, so a value that changes with a media query follows the viewport.\n\nReadmore.js re-measures a block whenever its width changes and once the page has loaded, so the fold follows text that re-wraps. When re-wrapped text grows past `collapsedHeight` the block gets folded, and when it no longer needs folding it loses its toggle. A block that's hidden when Readmore.js starts (in an inactive tab, say) is folded once it's shown.\n\n\n### Callbacks\n\n#### Toggle link callbacks\n\nYou can pass a callback function instead of an HTML string for the `moreLink` and `lessLink` options. This is useful if you want to alter the content of more/less toggle links on a per block basis. Your callback will receive the current block and _must_ return a string.\n\nHere's how you could use a callback to dynamically generate a `moreLink` containing the headline of a block.\n\n```javascript\nnew Readmore('article', {\n  moreLink: function(element) {\n    const headline = element.querySelector('h2').innerText;\n\n    return `<a href=\"#\">Read more about ${headline}</a>`;\n  }\n});\n```\n\n#### Lifecycle callbacks\n\nThe `beforeToggle` and `afterToggle` callbacks both receive the same arguments: `trigger`, `element`, and `expanded`.\n\n* `trigger`: the \"Read more\" or \"Close\" element that was clicked\n* `element`: the block that is being collapsed or expanded\n* `expanded`: Boolean; `true` means the block is expanded. `beforeToggle` gets the state before the toggle, `afterToggle` the state after it\n\nWith `speed: 0`, or when the visitor prefers reduced motion, `afterToggle` fires right away instead of when the animation ends.\n\nThe `blockProcessed` callback receives `element` and `collapsible`.\n\n* `element`: the block that has just been processed\n* `collapsible`: Boolean; `false` means the block was shorter than the specified minimum `collapsedHeight` (or hidden), so it has no \"Read more\" link for now\n\nHere's an example of how you could use the `afterToggle` callback to scroll back to the top of a block when the \"Close\" link is clicked.\n\n```javascript\nnew Readmore('article', {\n  afterToggle: function(trigger, element, expanded) {\n    if(!expanded) { // The \"Close\" link was clicked\n      window.scrollTo({ top: element.offsetTop, behavior: 'smooth' });\n    }\n  }\n});\n```\n\nIf `beforeToggle` returns `false` the toggle action is halted and `afterToggle` will _not_ be executed. This is useful if you want to prevent a toggle based on some application logic—the state of another element on the page, current phase of the moon, etc.\n\n\n## API\n\nThe `Readmore` class constructor and all methods accept as arguments, either:\n\n* `selector String` valid CSS selectors; e.g. `'blockquote'`, `'.truncate-block'`, or `'#blog .section'`\n* `Element` a single Element object; e.g. return value of `document.getElementById('blog')`\n* `NodeList` a NodeList collection of Elements; e.g. return value of `document.querySelectorAll('article')`\n\n### Constructor\n\n```javascript\nnew Readmore(selector String | Element | NodeList, options Object);\n```\n\n### toggle\n\nToggle a block programmatically.\n\n```javascript\n// As instance method\nrmjs.toggle(selector String | Element | NodeList);\n```\n\nYou can toggle a block from code:\n\n```javascript\n// Store a reference to an instance of Readmore\nvar rmjs = new Readmore('article');\n\nrmjs.toggle('article:first-child')\n```\n\n### destroy\n\nRemove Readmore.js functionality from specific blocks or all blocks.\n\n```javascript\nrmjs.destroy(null | selector String | Element | NodeList);\n```\n\nWhen invoked with no argument or `null`, will remove Readmore.js functionality from all of the instance's blocks. Each block gets back the `max-height` it had before, so you can call `new Readmore()` on it again.\n\nYou can remove the Readmore.js functionality like so:\n\n```javascript\n// Store a reference to an instance of Readmore\nvar rmjs = new Readmore('article');\n\n// Now call destroy on the instance\nrmjs.destroy();\n```\n\nOr, you can be more surgical by specifying a particular element:\n\n```javascript\n// Store a reference to an instance of Readmore\nvar rmjs = new Readmore('article');\n\n// Now remove Readmore from just the first block\nrmjs.destroy(document.querySelector('article:first-child'));\n\n// or\nrmjs.destroy('article:nth-of-type(2)');\n```\n\n\n## CSS\n\nReadmore.js needs no stylesheet. The collapsed height comes from the `max-height` property or the `collapsedHeight` option, and each block gets `overflow: hidden` and a `height` transition (from `speed`) as inline styles.\n\nFolded blocks get a `data-readmore` attribute and their toggles get `data-readmore-toggle`, which make handy styling hooks. Each toggle also carries `aria-controls`, pointing at its block, and `aria-expanded`, with the block's current state.\n\nBy default, Readmore.js also inserts the following CSS, which comes from the `blockCSS` option:\n\n```css\nselector + [data-readmore-toggle], selector[data-readmore] {\n  display: block;\n  width: 100%;\n}\n```\n\n_`selector` is the selector string you passed to `new Readmore()`. When you pass an Element or NodeList, Readmore.js generates a class for the instance and uses that instead._\n\nYou can override the base rules when you set up Readmore.js like so:\n\n```javascript\nnew Readmore('article', { blockCSS: 'display: inline-block; width: 50%;' });\n```\n\nIf you'd rather put that styling in your site's stylesheet, set `embedCSS` to `false` and Readmore.js won't add a `<style>` element at all:\n\n```javascript\nnew Readmore('article', { embedCSS: false });\n```\n\nBecause the transition is inline, a site's own `transition` rule on `[data-readmore]` needs `!important` to win.\n\nThe `<style>` goes in the document's `<head>`, so it can't reach blocks inside a shadow root. Put the `blockCSS` rules in the shadow root's own styles instead.\n\n### Media queries and other CSS tricks\n\nIf you wanted to set a `max-height` based on lines, you could do so in CSS with something like:\n\n```css\nbody {\n  font: 16px/1.5 sans-serif;\n}\n\n/* Show only 4 lines in smaller screens */\narticle {\n  max-height: 6em; /* (4 * 1.5 = 6) */\n}\n```\n\nThen, with a media query you could change the number of lines shown, like so:\n\n```css\n/* Show 8 lines on larger screens */\n@media screen and (min-width: 640px) {\n  article {\n    max-height: 12em;\n  }\n}\n```\n\n\n## Contributing\n\nPull requests are always welcome, but not all suggested features will get merged. Feel free to contact me if you have an idea for a feature.\n\nPull requests should include tests for your change, and this readme should be updated with a description of your new feature.\n\nYou'll need Node 24 or later. Install the development dependencies, and the browsers the tests run in:\n\n```\n$ npm install\n$ npx playwright install\n```\n\nThen, to build `dist/`:\n\n```\n$ npm run build\n```\n\nTo run the unit tests, then the browser tests in Chromium, Firefox and WebKit:\n\n```\n$ npm test\n```\n\nOr work on the demo page at http://localhost:9000, rebuilding as you go:\n\n```\n$ npm start\n```\n","readmeFilename":"README.md","users":{"garon":true,"rioli":true,"sergii_m":true}}