{"_id":"@ara-web/p-hintjens","_rev":"3-ac9b4f7b650adac5f845a5be66be75fc","name":"@ara-web/p-hintjens","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"@ara-web/p-hintjens","version":"0.0.1","keywords":["library","sds","ara"],"author":{"name":"Medet Ahmetson"},"license":"MPL-2.0","_id":"@ara-web/p-hintjens@0.0.1","maintainers":[{"name":"ahmetson","email":"medet@ara.foundation"}],"homepage":"https://github.com/ara-foundation/web#readme","bugs":{"url":"https://github.com/ara-foundation/web/issues"},"dist":{"shasum":"ef1c2f91f966de159e5f542d9fa24112c2b040a3","tarball":"https://registry.npmjs.org/@ara-web/p-hintjens/-/p-hintjens-0.0.1.tgz","fileCount":61,"integrity":"sha512-pnVVr8+tv0USvzcD/yRACh52cf9HYvkfkjsyXgJpZS1VusBNeyoFhPtu4b3rS5TYA2PQJnOphj+JHarEwJ4foQ==","signatures":[{"sig":"MEUCIGdnv7PCzjTxUECPUcKKuaHsKte4+quEvjM0d9d7VL/+AiEA1f4HlSMv+gORiRFts2VCawJeKVO8Dvp6M1yUwGRwYqE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":178772},"type":"module","_from":"file:ara-web-p-hintjens-0.0.1.tgz","exports":{".":{"types":"./src/index.ts","default":"./dist/index.js"},"./sds":{"types":"./src/sds/index.ts","default":"./dist/sds/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest -r ./","build":"pnpm _chore && rm -rf dist && tsc","_chore":"pnpm i"},"_npmUser":{"name":"ahmetson","email":"medet@ara.foundation"},"_resolved":"/tmp/680f63b641383f4c676510055d00ad03/ara-web-p-hintjens-0.0.1.tgz","_integrity":"sha512-pnVVr8+tv0USvzcD/yRACh52cf9HYvkfkjsyXgJpZS1VusBNeyoFhPtu4b3rS5TYA2PQJnOphj+JHarEwJ4foQ==","repository":{"url":"git://github.com/ara-foundation/web.git","type":"git"},"_npmVersion":"10.9.2","description":"A package with Typescript object traits, Debug, Result, Links, and SDS Framework to build modular apps","directories":{},"_nodeVersion":"22.13.1","dependencies":{"css-select":"^5.1.0","@types/node":"^22.15.16","packageurl-js":"^2.0.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^26.1.0","vitest":"2.1.6","typescript":"^5.8.3","@types/jsdom":"^21.1.7","@changesets/cli":"^2.27.10"},"_npmOperationalInternal":{"tmp":"tmp/p-hintjens_0.0.1_1747304672493_0.09240324354096074","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@ara-web/p-hintjens","version":"0.1.0","keywords":["library","ara"],"author":{"name":"Ara Foundation"},"license":"MPL-2.0","_id":"@ara-web/p-hintjens@0.1.0","maintainers":[{"name":"ahmetson","email":"medet@ara.foundation"}],"homepage":"https://github.com/ara-foundation/web#readme","bugs":{"url":"https://github.com/ara-foundation/web/issues"},"dist":{"shasum":"724d03097ce5abf695495c33e144a5bcaa49727b","tarball":"https://registry.npmjs.org/@ara-web/p-hintjens/-/p-hintjens-0.1.0.tgz","fileCount":37,"integrity":"sha512-H9Jb1hoEQVl6CgiSDQcdnbf8zGZ6Y9kGyMQGLqC/O5Mfz9yA0fkpyhFRjj2/lwc8AiTy3wEWEesSxS6oJzwpRQ==","signatures":[{"sig":"MEUCIDw16g9OsBKUv4xtiBZ7p7XS1dyMFFBi310bPuSFB2hZAiEArlMxzC2KJwN5RzNN0utmINPrBoDCJgew3TEfLuA3s2Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43789},"type":"module","_from":"file:ara-web-p-hintjens-0.1.0.tgz","exports":{".":{"types":"./src/index.ts","default":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","build":"pnpm _chore && rm -rf dist && tsc","_chore":"pnpm i"},"_npmUser":{"name":"ahmetson","email":"medet@ara.foundation"},"_resolved":"/tmp/feeb4061b3ac6ee7623c24cc971aa193/ara-web-p-hintjens-0.1.0.tgz","_integrity":"sha512-H9Jb1hoEQVl6CgiSDQcdnbf8zGZ6Y9kGyMQGLqC/O5Mfz9yA0fkpyhFRjj2/lwc8AiTy3wEWEesSxS6oJzwpRQ==","repository":{"url":"git://github.com/ara-foundation/web.git","type":"git","directory":"packages/p-hintjens"},"_npmVersion":"10.9.2","description":"A package with Typescript object traits, Debug, Result","directories":{},"_nodeVersion":"22.13.1","dependencies":{"@types/node":"^22.15.16"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"2.1.6","typescript":"^5.8.3","@changesets/cli":"^2.27.10"},"_npmOperationalInternal":{"tmp":"tmp/p-hintjens_0.1.0_1747406438467_0.643261771286145","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@ara-web/p-hintjens","version":"0.1.1","type":"module","author":{"name":"Ara Foundation"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"license":"MPL-2.0","description":"A package with Typescript object traits, Debug, Result","keywords":["library","ara"],"repository":{"type":"git","url":"git://github.com/ara-foundation/web.git","directory":"packages/p-hintjens"},"exports":{".":{"types":"./src/index.ts","default":"./dist/index.js"}},"devDependencies":{"@changesets/cli":"^2.27.10","typescript":"^5.8.3","vitest":"2.1.6"},"dependencies":{"@types/node":"^22.15.16"},"scripts":{"dev":"tsc --watch","build":"pnpm _chore && rm -rf dist && tsc","_chore":"pnpm i"},"_id":"@ara-web/p-hintjens@0.1.1","bugs":{"url":"https://github.com/ara-foundation/web/issues"},"homepage":"https://github.com/ara-foundation/web#readme","_integrity":"sha512-IpeOoFgtpKhTpcots/RP2ElINz5JJCjHdBvyjXVMIXi35tCg69q/D+l8IQ3PzANpGajaAnsee9o4Rn6UefsfOQ==","_resolved":"/tmp/42618de87979f6088d175ca1bb2720ae/ara-web-p-hintjens-0.1.1.tgz","_from":"file:ara-web-p-hintjens-0.1.1.tgz","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-IpeOoFgtpKhTpcots/RP2ElINz5JJCjHdBvyjXVMIXi35tCg69q/D+l8IQ3PzANpGajaAnsee9o4Rn6UefsfOQ==","shasum":"d92e93cbbdd336625a99944dee8b4e2ba39dd2be","tarball":"https://registry.npmjs.org/@ara-web/p-hintjens/-/p-hintjens-0.1.1.tgz","fileCount":37,"unpackedSize":44416,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDrLz8Sfv55hdHjEjli9ZK8ABuWR9zsXm02+OOQJdHhEQIhAM4Sjm3IaSJaPV1L0ep1WBaAGbOB8OLNRBiHRsEA0Rkd"}]},"_npmUser":{"name":"ahmetson","email":"medet@ara.foundation"},"directories":{},"maintainers":[{"name":"ahmetson","email":"medet@ara.foundation"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/p-hintjens_0.1.1_1747409512034_0.2671496713689525"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-15T10:24:32.416Z","modified":"2025-05-16T15:31:52.503Z","0.0.1":"2025-05-15T10:24:32.678Z","0.1.0":"2025-05-16T14:40:38.663Z","0.1.1":"2025-05-16T15:31:52.279Z"},"bugs":{"url":"https://github.com/ara-foundation/web/issues"},"author":{"name":"Ara Foundation"},"license":"MPL-2.0","homepage":"https://github.com/ara-foundation/web#readme","keywords":["library","ara"],"repository":{"type":"git","url":"git://github.com/ara-foundation/web.git","directory":"packages/p-hintjens"},"description":"A package with Typescript object traits, Debug, Result","maintainers":[{"name":"ahmetson","email":"medet@ara.foundation"}],"readme":"# P-Hintjens\nThis package is named in [Pieter Hintjens](https://en.wikipedia.org/wiki/Pieter_Hintjens) honor.\n\nAnother name of the package that describes its purpose is **Typescript enhancement**. Which simply adds additional functions that simplifies your work flow.\n\nUseful scripts you can take from this package:\n\n- 🤖 **Traits** adds additional methods that works with the Typescript data types. List of traits and example utility they could provide:\n    * Array &ndash; `isEqualArray` makes sure two arrays have the same element data.\n    * Enum &ndash; `enumValues` and `enumKeys` returns list of values or keys from the defined enum.\n    * Object &ndash; `deepCopy` creates a new copy of the object by value.\n    * String &ndash; `capitalizeFirstLetter` simply makes the first letter of the string uppercase.\n- 📝 **Ara Link** adds various types of links between objects.\n    * Ara Link &ndash; A generic Link that could link to any resource, not only text value.\n    * Module Link &ndash; either a file url or a Purl. Used to create module IDs.\n- 🛠️ **Debug** Much better version of `console.log` that puts intends as the code flow enters into a new function.\n- 🔌 **Interfaces** various interfaces to cast object into this interface.\n    * get-text &ndash; cast object into an interface with `getText() => string` method.\n- 🔒 **Result** return `Result<ReturnType>` from function, and if the result is error, don't throw exceptions.\n\n## The decorators\nThe `staticImplements` allows creating interfaces with the static methods.\n\nURL: `@ara-web/p-hintjens?id=ObjectTraits.staticImplements#traits/traits/object-traits`.\n\n# Roadmap\n* Add arbitrary amount of data in the Debug.log();\n\n","readmeFilename":"README.md"}