Files
Virtual-Box/.npm/_cacache/content-v2/sha512/47/c8/484c07ca171a77662bd552eabb100d52aa08139776cada73609747fc0045530c3fbb5ab354ea0cb920028ba82632cea7c763c21bd22af890f32e05ed3986
2025-12-02 16:27:21 +00:00

1 line
8.1 KiB
Plaintext

{"_id":"unpack-string","_rev":"6-9ecdd97c47e9928366b9c36944bc996a","name":"unpack-string","description":"Unpacks the content found within a text, delimited by an opening char and a closing char, e.g., 'Can extract (only the content found here within these parentheses)'","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"unpack-string","version":"0.0.1","description":"Unpacks the content found within a text, delimited by an opening char and a closing char, e.g., 'Can extract (only the content found here within these parentheses)'","main":"lib/unpack-string.js","author":{"name":"Diego ZoracKy","email":"diego.zoracky@gmail.com","url":"https://github.com/DiegoZoracKy/"},"scripts":{"test":"mocha ./test/main.test.js"},"keywords":["unpack","string","brackets","parentheses"],"license":"MIT","devDependencies":{"chai":"^4.0.0","mocha":"^3.4.2"},"gitHead":"567cd9f50f4af84982bf33f2299adff083b7f24b","_id":"unpack-string@0.0.1","_shasum":"e7b80ce6605713115af1850ed0f13071815c0f78","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.9.0","_npmUser":{"name":"diegozoracky","email":"diego.zoracky@gmail.com"},"maintainers":[{"name":"diegozoracky","email":"diego.zoracky@gmail.com"}],"dist":{"shasum":"e7b80ce6605713115af1850ed0f13071815c0f78","tarball":"https://registry.npmjs.org/unpack-string/-/unpack-string-0.0.1.tgz","integrity":"sha512-es5liCFebUnxEsGeljIUdwIE4Q1dHO9Lc9qo671gNESlIbpWFmeXR65utATRBNJWR/5Wqg8eb43TeUB0XT1hcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUNY0Jr5VEUzvHTu43I0ex/OPK4XNl1XaTPI9y16ZjSwIgROVny2MKdsRx0PmQ9s7eyjaBHnuNwzwgw/4FLOawAbE="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unpack-string-0.0.1.tgz_1495943592013_0.705467889783904"}},"0.0.2":{"name":"unpack-string","version":"0.0.2","description":"Unpacks the content found within a text, delimited by an opening char and a closing char, e.g., 'Can extract (only the content found here within these parentheses)'","main":"lib/unpack-string.js","author":{"name":"Diego ZoracKy","email":"diego.zoracky@gmail.com","url":"https://github.com/DiegoZoracKy/"},"scripts":{"test":"mocha ./test/main.test.js"},"keywords":["unpack","string","brackets","parentheses"],"license":"MIT","devDependencies":{"chai":"^4.0.0","mocha":"^3.4.2"},"gitHead":"f9c859bb35ee13c50f1e75ab2fc3e36cce9a0f86","_id":"unpack-string@0.0.2","_shasum":"302ecf08238b0139bd434a4d7fd67cdf33ca275d","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.9.0","_npmUser":{"name":"diegozoracky","email":"diego.zoracky@gmail.com"},"maintainers":[{"name":"diegozoracky","email":"diego.zoracky@gmail.com"}],"dist":{"shasum":"302ecf08238b0139bd434a4d7fd67cdf33ca275d","tarball":"https://registry.npmjs.org/unpack-string/-/unpack-string-0.0.2.tgz","integrity":"sha512-2ZFjp5aY7QwHE6HAp47RnKYfvgAQ5+NwbKq/ZVtty85RDb3/UaTeCfizo5L/fXzM7UkMP/zDtbV+kGW/iJiK6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF7JJomEI9j1Loszf1aLLPXKfwqH2P+AMJNhHskNOcGZAiEAghOrOjoq4v6923jpv79csAcEMPMFlC+R0PudLBpB6mM="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unpack-string-0.0.2.tgz_1495985333445_0.9716165228746831"}},"0.0.3":{"name":"unpack-string","version":"0.0.3","description":"Unpacks the content found within a text, delimited by an opening char and a closing char, e.g., 'Can extract (only the content found here within these parentheses)'","main":"lib/unpack-string.js","bin":{"unpack-string":"bin/magicli.js"},"author":{"name":"Diego ZoracKy","email":"diego.zoracky@gmail.com","url":"https://github.com/DiegoZoracKy/"},"scripts":{"test":"mocha ./test/main.test.js"},"keywords":["unpack","string","brackets","parentheses"],"license":"MIT","devDependencies":{"chai":"^4.0.0","mocha":"^3.4.2"},"dependencies":{"magicli":"0.0.8"},"gitHead":"a51bac357d856037347900a9bbeffa9e475bc160","_id":"unpack-string@0.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"diegozoracky","email":"diego.zoracky@gmail.com"},"dist":{"integrity":"sha512-OH7lK52ZureVCXD1+OlO/C+p1zqlbSfCYVuPlkhq7XQiEfjKRhZJNbxCtDrLxCJ7S4uzZ8hCx6+LrB8KMURFDQ==","shasum":"d299e8a40f176cc522106243162f7908087f0136","tarball":"https://registry.npmjs.org/unpack-string/-/unpack-string-0.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE/NqK+J4eA4EYj+szTvx7j3yCS/eBtYg13tqAn2SoPqAiBTpQ4jHyk0iEBecpmJOISRJLnISpxRPjmEfrxWybjgxg=="}]},"maintainers":[{"name":"diegozoracky","email":"diego.zoracky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unpack-string-0.0.3.tgz_1510191294528_0.3840931225568056"}},"0.0.4":{"name":"unpack-string","version":"0.0.4","description":"Unpacks the content found within a text, delimited by an opening char and a closing char, e.g., 'Can extract (only the content found here within these parentheses)'","main":"lib/unpack-string.js","bin":{"unpack-string":"bin/magicli.js"},"author":{"name":"Diego ZoracKy","email":"diego.zoracky@gmail.com","url":"https://github.com/DiegoZoracKy/"},"scripts":{"test":"mocha ./test/main.test.js"},"keywords":["unpack","string","brackets","parentheses"],"license":"MIT","devDependencies":{"chai":"^4.0.0","mocha":"^3.4.2"},"dependencies":{"magicli":"0.0.8"},"gitHead":"28c4d66eca60d42fe7d1d78660691b17aae886d9","_id":"unpack-string@0.0.4","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"diegozoracky","email":"diego.zoracky@gmail.com"},"dist":{"integrity":"sha512-o8pF6ICH5V+P51a88lrPf6uwX/C0tMEeHHVRiQITcAdlo5qs+4EDEhNyjGc6+EOowfNK5wX1u99J65ZXPITjNw==","shasum":"e99543275df8e13b370e8cb9cec1afbaaba3204f","tarball":"https://registry.npmjs.org/unpack-string/-/unpack-string-0.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEnY8qV8Th4I3OiHWf43oB0ak3cY1UXT+8/gJb7rKvAuAiB+4tyO8YlmvYI1z6xU0E2eO0jIKcZJCY6VcM6IKXGd4A=="}]},"maintainers":[{"name":"diegozoracky","email":"diego.zoracky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unpack-string-0.0.4.tgz_1510193121844_0.6413662852719426"}}},"readme":"# unpack-string\n\n[![Build Status](https://api.travis-ci.org/DiegoZoracKy/unpack-string.svg)](https://travis-ci.org/DiegoZoracKy/unpack-string)\n\nUnpacks the content found within a text, delimited by an opening char and a closing char, e.g., *'Can extract (**only the content found here within these parentheses**)'*\n\n**Node.js** and **Browser** ready.\n\n## Installation\n\n```bash\nnpm install unpack-string\n```\n**CLI**\n```bash\nnpm install unpack-string -g\n```\n```bash\nnpx unpack-string --help\n```\n\n## Usage\n\nIt will extract the content found within the *opening char* and the *closing char* defined as parameters. If the parameter **openingChar** is not passed in, it will try to guess the first occurrence of some of these known chars `'([{<'`, and, when the parameter **closingChar** is not passed in, it will try to guess some of these chars `')]}>'`, to match the **openingChar**.\n\n## Examples\n\n```javascript\nconst unpackString = require('unpack-string');\n\nconst str = 'Can extract (only the content [found {here} within] these parentheses)!!';\n\n{\n\tconst result = unpackString(str);\n\n\t// Guessing openingChar and closingChar. \"()\" in that case.\n\t// result === 'only the content [found {here} within] these parentheses'\n}\n\n{\n\tconst openingChar = '[';\n\tconst result = unpackString(str, openingChar);\n\n\t// Guessing closingChar: \"]\"\n\t// result === 'found {here} within'\n}\n\n{\n\tconst openingChar = '{';\n\tconst closingChar = ']';\n\tconst result = unpackString(str, openingChar, closingChar);\n\n\t// Defining any openingChar and closingChar\n\t// result === 'here} within'\n}\n```","maintainers":[{"name":"diegozoracky","email":"diego.zoracky@gmail.com"}],"time":{"modified":"2022-06-28T05:13:35.949Z","created":"2017-05-28T03:53:12.254Z","0.0.1":"2017-05-28T03:53:12.254Z","0.0.2":"2017-05-28T15:28:53.525Z","0.0.3":"2017-11-09T01:34:54.623Z","0.0.4":"2017-11-09T02:05:21.908Z"},"keywords":["unpack","string","brackets","parentheses"],"author":{"name":"Diego ZoracKy","email":"diego.zoracky@gmail.com","url":"https://github.com/DiegoZoracKy/"},"license":"MIT","readmeFilename":"README.md"}