{"_id":"@aleeselosa/truncatify","name":"@aleeselosa/truncatify","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aleeselosa/truncatify","version":"1.0.0","description":"Truncate long descriptions and cut it to the nearest word ending","private":false,"main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build:commonjs":"babel src --out-dir lib"},"repository":{"type":"git","url":"git@bitbucket.ipgaxis.com:7999/~alever.selosa_mrm.com/truncatify.git"},"keywords":["truncate","truncator","truncatify"],"author":{"name":"Alever Selosa"},"license":"ISC","homepage":"http://git@bitbucket.ipgaxis.com:7999/~alever.selosa_mrm.com/truncatify.git#readme","devDependencies":{"@babel/cli":"^7.13.16","@babel/core":"^7.13.16","@babel/preset-env":"^7.13.15"},"directories":{"lib":"lib"},"gitHead":"8683753efa8265731ec83eb3f34bdd4f267d2fb6","_id":"@aleeselosa/truncatify@1.0.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-m/UZerM2IaLRy/mhUIZUQDIymnzoK6kn66ZUB3dFYkxYkjJQ+7WuDbVReQhuWi4U7vOtMHzGhGkJC1TSUc8Rxw==","shasum":"34f756899323f14ddfdf683758c9fd08edd51086","tarball":"https://registry.npmjs.org/@aleeselosa/truncatify/-/truncatify-1.0.0.tgz","fileCount":4,"unpackedSize":7482,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChpZ/wgKa24c/WDYJCHcuafeF8bzUkbklivJ4JUPR8CQIgcLvLgzI526cC6bVthbGlNsbgPsJNBFbMWYV1na2BClc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikt82ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmph2g/7BsqUwooRVIHrTwdV/hVRlgSzMu1RP1fygMaP4KHXSqhVTXwm\r\nja8R5yWCQPKR99k4ieWixuIZ9g4edi0CV4rmqSw3Pjtru4GM/qdnBzosnGAd\r\n+gJZ0rEB9UJxIKvIB6igQWV3GLVudm3F4eIiN9kgdIT0g58hd7fRe1NKDu4t\r\np9NqppOv99jTBArvBieAjRPHcJ7Nmh5CLsedHaNBGVpDZn6Woqt8yAnX2kL6\r\nADM5v0NVRBmJ+uay8+fof4eYyYcUY4QDBamy84WLtvDu2gR6vE5uYuOeqEeH\r\nTkKpCuQexqnke3Q3cAWrznkzabuOAM+/9MItyJK5kGlVULuGXduNEoNQdmfi\r\nhMFPtBUpAwXp4Gp4qfor3NaIE1wFk1NnlVgRQ5Yn4rZkzfWjoY2+9zsDpVcz\r\n62TqoxfVpaufxR6Zl9XTS09s1e3eo8rTrq34Ca2SDzFrq5gN66fbLuIOEJhe\r\n+a3rbARiAqsRw+iX8gPCPOQxkK7Cro8QJixdHe25UoZNVdutQtszvYjf69it\r\n2tzq6P26hl6ujSayT/qbdilBfvDTxD8ecR4MWEgB4fo3R3lbQ1TOjigEyAM5\r\nvhdLjqggWfqC/U2VBNLuoHv18R8zzrYsRrCCIRdkqcJWkYuqe5K424pbnqm/\r\nd0oFzND0SvH2BbS5f1F9hrou8+WZROgNizQ=\r\n=e45k\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aleeselosa","email":"selosaalever@gmail.com"},"maintainers":[{"name":"aleeselosa","email":"selosaalever@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/truncatify_1.0.0_1653792566397_0.7371031901812239"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-29T02:49:26.353Z","1.0.0":"2022-05-29T02:49:26.546Z","modified":"2022-05-29T02:49:26.662Z"},"maintainers":[{"name":"aleeselosa","email":"selosaalever@gmail.com"}],"description":"Truncate long descriptions and cut it to the nearest word ending","homepage":"http://git@bitbucket.ipgaxis.com:7999/~alever.selosa_mrm.com/truncatify.git#readme","keywords":["truncate","truncator","truncatify"],"repository":{"type":"git","url":"git@bitbucket.ipgaxis.com:7999/~alever.selosa_mrm.com/truncatify.git"},"author":{"name":"Alever Selosa"},"license":"ISC","readme":"# What is this?\r\n\r\nThis library can be used to truncate long descriptions and cut it to the nearest word ending. It also considers the included tags inside the container.\r\n\r\n# Installation\r\n\r\n`npm i truncatify --save`\r\n\r\nThen...\r\n\r\n```\r\nimport Truncatify from 'truncatify';\r\n\r\nlet truncator = new Truncatify({classes: ['.truncate'], limit: 200, truncationChars: '---' });\r\ntruncator.truncate();\r\n```\r\n\r\nTruncatify has 3 options, those are optional:\r\n* *classes* - _arrays of classes_ | (Defaults to `['.truncate']`)\r\n* *limit* - _number_ | (Defaults to `200`)\r\n* *truncationChars* - _string_ | (Defaults to `...`)","readmeFilename":"README.md"}