Last 12 weeks · 0 commits
4 of 6 standards met
Repository: sindresorhus/subsume. Description: Embed data in other data and easily extract it when needed Stars: 76, Forks: 9. Primary language: JavaScript. Languages: JavaScript (85.1%), TypeScript (14.9%). License: MIT. Latest release: v4.0.0 (4y ago). Open PRs: 0, open issues: 0. Last activity: 4y ago. Community health: 71%. Top contributors: sindresorhus, Areadrill, BendingBender, Richienb.
This PR resolves #1 as well as fixes #2. A new method parseAll is added which allows one to retrieve all embeded data or the data with the provided IDs. An auxiliary method was also added, extractIDs, in order to be able to know which IDs to parse. Now, in the functions where strings are manipulated, the integrity-checking function is called to ascertain whether the string is safe to use (i. e whether it will give the expected output).