{"_id":"@alta-ng-timeago/hiamtanh-alta","_rev":"1-1afa2233f8f161228df850be5f137c98","name":"@alta-ng-timeago/hiamtanh-alta","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alta-ng-timeago/hiamtanh-alta","version":"1.0.0","description":"[![Build Status](https://img.shields.io/appveyor/ci/keyone2693/imageresizer-aspnetcore.svg)](https://travis-ci.org/keyone2693/persian-time-ago-pipe) [![npm](https://img.shields.io/npm/v/persian-time-ago-pipe.svg)](https://www.npmjs.com/package/persian-tim","main":"alta.conf.js","dependencies":{"abab":"^2.0.5","acorn":"^6.4.2","adm-zip":"^0.4.16","after":"^0.8.2","agent-base":"^4.3.0","aggregate-error":"^3.1.0","ajv-errors":"^1.0.1","ajv-keywords":"^3.5.2","alphanum-sort":"^1.0.2","ansi-colors":"^3.2.4","ansi-html":"^0.0.7","ansi-regex":"^2.1.1","ansi-styles":"^3.2.1","app-root-path":"^3.0.0","aproba":"^1.2.0","arg":"^4.1.3","aria-query":"^3.0.0","arity-n":"^1.0.4","arr-diff":"^4.0.0","arr-flatten":"^1.1.0","arr-union":"^3.1.0","array-flatten":"^2.1.2","array-union":"^2.1.0","array-uniq":"^1.0.3","array-unique":"^0.3.2","arraybuffer.slice":"^0.0.7","arrify":"^1.0.1","asap":"^2.0.6","assert-plus":"^1.0.0","assign-symbols":"^1.0.0","ast-types-flow":"^0.0.7","async":"^2.6.3","async-each":"^1.0.3","async-limiter":"^1.0.1","asynckit":"^0.4.0","at-least-node":"^1.0.0","atob":"^2.1.2","aws-sign2":"^0.7.0","aws4":"^1.11.0","axobject-query":"^2.0.2","backo2":"^1.0.2","balanced-match":"^1.0.0","base64-arraybuffer":"^0.1.4","base64-js":"^1.3.1","base64id":"^2.0.0","batch":"^0.6.1","better-assert":"^1.0.2","big.js":"^5.2.2","binary-extensions":"^2.1.0","blob":"^0.0.5","bluebird":"^3.7.2","bn.js":"^5.1.3","boolbase":"^1.0.0","brorand":"^1.1.0","brace-expansion":"^1.1.11","buffer":"^4.9.2","buffer-from":"^1.1.1","buffer-indexof":"^1.1.1","buffer-xor":"^1.0.3","builtin-modules":"^1.1.1","builtin-status-codes":"^3.0.0","builtins":"^1.0.3","bytes":"^3.0.0","call-bind":"^1.0.0","caller-callsite":"^2.0.0","caller-path":"^2.0.0","callsites":"^2.0.0","callsite":"^1.0.0","camelcase":"^6.2.0","caniuse-lite":"^1.0.30001154","canonical-path":"^1.0.0","caseless":"^0.12.0","chardet":"^0.7.0","chownr":"^2.0.0","chrome-trace-event":"^1.0.2","circular-dependency-plugin":"^5.2.0","clean-stack":"^2.2.0","cli-spinners":"^2.5.0","cli-width":"^3.0.0","clone":"^2.1.2","color-convert":"^1.9.3","color-name":"^1.1.3","colorette":"^1.2.1","colors":"^1.4.0","combined-stream":"^1.0.8","commander":"^2.20.3","commondir":"^1.0.1","component-bind":"^1.0.0","component-emitter":"^1.3.0","component-inherit":"^0.0.3","compose-function":"^3.0.3","concat-map":"^0.0.1","connect-history-api-fallback":"^1.6.0","console-browserify":"^1.2.0","constants-browserify":"^1.0.0","content-type":"^1.0.4","cookie":"^0.4.0","cookie-signature":"^1.0.6","copy-descriptor":"^0.1.1","core-js":"^3.6.4","core-util-is":"^1.0.2","css-color-names":"^0.0.4","css-select-base-adapter":"^0.1.1","css-selector-tokenizer":"^0.7.3","css-tree":"^1.0.0-alpha.37","css-what":"^3.4.2","cssesc":"^3.0.0","cssnano-util-get-arguments":"^4.0.0","cssnano-util-get-match":"^4.0.0","cssnano-util-same-parent":"^4.0.1","csso":"^4.1.0","cuint":"^0.2.2","custom-event":"^1.0.1","cyclist":"^1.0.1","damerau-levenshtein":"^1.0.6","dashdash":"^1.14.1","date-format":"^3.0.0","debuglog":"^1.0.1","decamelize":"^1.2.0","decode-uri-component":"^0.2.0","deepmerge":"^4.2.2","defaults":"^1.0.3","define-property":"^2.0.2","delayed-stream":"^1.0.0","depd":"^1.1.2","dependency-graph":"^0.7.2","destroy":"^1.0.4","detect-node":"^2.0.4","di":"^0.0.1","diff":"^4.0.2","dns-equal":"^1.0.0","dns-txt":"^2.0.2","dom-serializer":"^0.2.2","domain-browser":"^1.2.0","domelementtype":"^1.3.1","domutils":"^1.7.0","dot-prop":"^5.3.0","ee-first":"^1.1.1","electron-to-chromium":"^1.3.586","emoji-regex":"^7.0.3","emojis-list":"^3.0.0","encodeurl":"^1.0.2","engine.io-parser":"^2.2.1","ent":"^2.2.0","entities":"^2.1.0","err-code":"^1.1.2","error-ex":"^1.3.2","es-to-primitive":"^1.2.1","es6-promise":"^4.2.8","es6-promisify":"^5.0.0","escalade":"^3.1.1","escape-html":"^1.0.3","escape-string-regexp":"^1.0.5","eslint-scope":"^4.0.3","esprima":"^4.0.1","esrecurse":"^4.3.0","estraverse":"^4.3.0","estree-walker":"^2.0.1","esutils":"^2.0.3","etag":"^1.8.1","eventemitter3":"^4.0.7","events":"^3.2.0","exit":"^0.1.2","extend":"^3.0.2","ext":"^1.4.0","extend-shallow":"^3.0.2","fast-deep-equal":"^3.1.3","extsprintf":"^1.3.0","fast-json-stable-stringify":"^2.1.0","fastparse":"^1.1.2","figgy-pudding":"^3.5.2","figures":"^3.2.0","find-parent-dir":"^0.3.0","flatted":"^2.0.2","follow-redirects":"^1.13.0","forever-agent":"^0.6.1","for-in":"^1.0.2","forwarded":"^0.1.2","fragment-cache":"^0.2.1","fresh":"^0.5.2","fs.realpath":"^1.0.0","fsevents":"^2.1.3","function-bind":"^1.1.1","genfun":"^5.0.0","gensync":"^1.0.0-beta.2","get-caller-file":"^2.0.5","get-intrinsic":"^1.0.1","get-value":"^2.0.6","getpass":"^0.1.7","glob-parent":"^5.1.1","globals":"^11.12.0","graceful-fs":"^4.2.4","handle-thing":"^2.0.1","har-schema":"^2.0.0","has":"^1.0.3","has-ansi":"^2.0.0","has-binary2":"^1.0.3","has-cors":"^1.1.0","has-flag":"^3.0.0","has-symbols":"^1.0.1","has-value":"^1.0.0","has-values":"^1.0.0","hex-color-regex":"^1.1.0","hsl-regex":"^1.0.0","hsla-regex":"^1.0.0","html-entities":"^1.3.1","html-escaper":"^2.0.2","html-comment-regex":"^1.1.2","http-cache-semantics":"^3.8.1","http-deceiver":"^1.2.7","http-proxy-agent":"^2.1.0","https-browserify":"^1.0.0","ieee754":"^1.2.1","iferr":"^0.1.5","image-size":"^0.5.5","ignore":"^5.1.8","immediate":"^3.0.6","imurmurhash":"^0.1.4","indent-string":"^4.0.0","indexes-of":"^1.0.1","indexof":"^0.0.1","infer-owner":"^1.0.4","inherits":"^2.0.4","ini":"^1.3.5","ip":"^1.1.5","invariant":"^2.2.4","ipaddr.js":"^1.9.1","ip-regex":"^2.1.0","is-accessor-descriptor":"^0.1.6","is-absolute-url":"^2.1.0","is-arguments":"^1.0.4","is-arrayish":"^0.2.1","is-buffer":"^1.1.6","is-binary-path":"^2.1.0","is-core-module":"^2.0.0","is-callable":"^1.2.2","is-date-object":"^1.0.2","is-data-descriptor":"^0.1.4","is-descriptor":"^0.1.6","is-docker":"^2.1.1","is-directory":"^0.3.1","is-extendable":"^0.1.1","is-extglob":"^2.1.1","is-fullwidth-code-point":"^2.0.0","is-glob":"^4.0.1","is-interactive":"^1.0.0","is-module":"^1.0.0","is-negative-zero":"^2.0.0","is-number":"^7.0.0","is-obj":"^2.0.0","is-path-cwd":"^2.2.0","is-plain-obj":"^1.1.0","is-plain-object":"^2.0.4","is-reference":"^1.2.1","is-regex":"^1.1.1","is-resolvable":"^1.1.0","is-stream":"^1.1.0","is-svg":"^3.0.0","is-symbol":"^1.0.3","is-typedarray":"^1.0.0","is-windows":"^1.0.2","is-wsl":"^2.2.0","isarray":"^1.0.0","isbinaryfile":"^4.0.6","isexe":"^2.0.0","isobject":"^3.0.1","isstream":"^0.1.2","istanbul-lib-coverage":"^3.0.0","istanbul-lib-report":"^3.0.0","istanbul-reports":"^3.0.2","jasmine-core":"^3.6.0","jest-worker":"^26.3.0","jasminewd2":"^2.2.0","jsbn":"^0.1.1","js-tokens":"^4.0.0","jsesc":"^2.5.2","json-parse-better-errors":"^1.0.2","json-parse-even-better-errors":"^2.3.1","json-schema":"^0.2.3","json-stringify-safe":"^5.0.1","json-schema-traverse":"^0.4.1","jsonc-parser":"^2.3.0","json3":"^3.3.3","jsonfile":"^4.0.0","jsonparse":"^1.3.1","killable":"^1.0.1","kind-of":"^6.0.3","klona":"^2.0.4","leven":"^3.1.0","lie":"^3.3.0","levenary":"^1.1.1","loader-runner":"^2.4.0","lines-and-columns":"^1.1.6","lodash.clonedeep":"^4.5.0","lodash":"^4.17.20","lodash.memoize":"^4.1.2","lodash.sortby":"^4.7.0","lodash.uniq":"^4.5.0","make-error":"^1.3.6","loglevel":"^1.7.0","map-cache":"^0.2.2","mdn-data":"^2.0.4","media-typer":"^0.3.0","loose-envify":"^1.4.0","merge-source-map":"^1.1.0","merge-descriptors":"^1.0.1","merge-stream":"^2.0.0","merge2":"^1.4.1","methods":"^1.1.2","miller-rabin":"^4.0.1","mime":"^1.6.0","log-symbols":"^4.0.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"tuan an"},"license":"ISC","_id":"@alta-ng-timeago/hiamtanh-alta@1.0.0","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-Z/8FWTbyfCK9Jm417pBX23lM3m0i6WDvsWIi4u+5ePIzdkUnUgHDYSWNBs7JAgrBI5O3TQldjuzIornesCSBkQ==","shasum":"c1304a3b5f44d61605efdabad98952a280b15462","tarball":"https://registry.npmjs.org/@alta-ng-timeago/hiamtanh-alta/-/hiamtanh-alta-1.0.0.tgz","fileCount":29,"unpackedSize":35564,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBtDECRA9TVsSAnZWagAAVI8P/0PRwR08iuXFbjIHwaup\nS/Xr2JTIsoZOg4Tj43k70E/L33dkrokLpdTDC1S9p4GOY+DwLpAcjNIzMSJw\nca4F2cf/kR0mNXXmsY76CJXqxBpQPGxI9bXlqtUl8FVyj16NyobtsnEoyVGK\nuLDUZhCAySLDmckf1YCzvhD85qU3mA1uLoEyHYMrJYpxer7iJrfjf1rUlAq6\nJNlbAZknkFNMn4scFHJVn54qFl5i+K0TEiVRmIBciquLFvAhZQJ3JXpeQP0Y\n/aWMayfzHOf2Eyop/QtsAFk23atWFSL1YNbKrHQXcwOZ2fBjcytj5kTjaEX0\npdt5dgHmIj+A19NwhK1ul5J+/0nteXZow7i6MtrbBIH52uluasYN1scG2//y\nqer+rTr0Llua1jY/5HbBA481sjL8JeZ8b4mYInrRuTHlfXC6CAHg/lZaU11O\nJCBO3dMcNz02yuPqjTsTLUjuzCowZ470fXIKvX6Hrzg3DM63zDXpbL58Cqa9\nGdSPLBn0uIax8JdJRhiiv9tOvqHp8RQBfnxDaYP3jLLxNX9/nSHWJ+3e8a13\ny3ipdXcXTQdq/y4zYKSx7hROnTBRMN9y0QyPoDtHDxlRPbSvbVKEYOE0DE+W\nsL6IBsrmik/WStYq9O3ef2dJXE0hSqh/NB+fZ5xmFZtYijjtruQTiAaG97SJ\nZnIf\r\n=rD9U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH5CSkq3qEDosGy9Kl1i7O0VGfPYotQmTX0abdIvyPHwAiAfFhthU4mznuyJOmSdq/75k6Pn++TBphZgDwq9T2eP9Q=="}]},"_npmUser":{"name":"hiamtanh","email":"doremon209a@gmail.com"},"directories":{},"maintainers":[{"name":"hiamtanh","email":"doremon209a@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hiamtanh-alta_1.0.0_1627836611868_0.6655274235968507"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-01T16:50:11.792Z","1.0.0":"2021-08-01T16:50:12.063Z","modified":"2022-04-04T13:39:27.774Z"},"maintainers":[{"name":"hiamtanh","email":"doremon209a@gmail.com"}],"description":"[![Build Status](https://img.shields.io/appveyor/ci/keyone2693/imageresizer-aspnetcore.svg)](https://travis-ci.org/keyone2693/persian-time-ago-pipe) [![npm](https://img.shields.io/npm/v/persian-time-ago-pipe.svg)](https://www.npmjs.com/package/persian-tim","author":{"name":"tuan an"},"license":"ISC","readme":"# persian-time-ago-pipe\n[![Build Status](https://img.shields.io/appveyor/ci/keyone2693/imageresizer-aspnetcore.svg)](https://travis-ci.org/keyone2693/persian-time-ago-pipe) [![npm](https://img.shields.io/npm/v/persian-time-ago-pipe.svg)](https://www.npmjs.com/package/persian-time-ago-pipe) [![npm](https://img.shields.io/npm/dt/persian-time-ago-pipe.svg?maxAge=25920)](https://www.npmjs.com/package/persian-time-ago-pipe) [![GitHub issues](https://img.shields.io/github/issues/keyone2693/persian-time-ago-pipe.svg?maxAge=25920?style=plastic)](https://github.com/keyone2693/persian-time-ago-pipe/issues) [![npm](https://img.shields.io/npm/l/persian-time-ago-pipe.svg?maxAge=25920?style=plastic)](https://github.com/keyone2693/persian-time-ago-pipe/blob/master/LICENSE)\n\n\nA really simple, lightweight Angular pipe for converting a date string into a time ago\n\n## version\nangular 5+\n\n\n\"now working with ivy and Angualr 9+ no problem :)\"\n\n\n\n\n|Time Range|Output|\n|---|---|\n|0 - 45 seconds             | چند ثانیه پیش      |\n|45 - 90 seconds            | دقیقه ای پیش          |\n|90 seconds - 45 minutes    | X دقیقه پیش         |\n|45 - 90 minutes            | ساعتی پیش           |\n|90 minutes - 22 hours      | X ساعت پیش           |\n|22 - 36 hours              | روزی پیش              |\n|36 hours - 25 days         | X روز پیش             |\n|25 - 45 days               | یک ماه پیش            |\n|45 - 345 days              | X ماه پیش           |\n|345 - 545 days (1.5 years) | یک سال پیش            |\n|546 days+                  | X سال پیش            |\n\n## Installation\n```npm install persian-time-ago-pipe --save```\n\n## Usage\nIt can be imported into your angular project, as you would for any other library. \n\nIn the @NgModule you want to use it in\n```\nimport { PersianTimeAgoModule } from 'persian-time-ago-pipe';\n```\nadd \"PersianTimeAgoPipe\" to your declarations\n```\n@NgModule({\n\timports: [... ,PersianTimeAgoModule , ...]\n})\n```\n---\n\nIn your component templates you can just do:\n```\n<span>{{your_date | persianTimeAgo}}</span>\n```\nwhere \"your_date\" is a local date as a \"string\", which could be parsed by the standard Js Date()\n```\n//in component\n_dt = new Date();\n//in html\n<span>{{_dt.toString() | persianTimeAgo}}</span>\n```\n\nIf this value is null or not parsable as a date, then the pipe will display nothing\n","readmeFilename":"README.md"}