New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

meta-yaml

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

meta-yaml - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

27

lib/MetaYaml.js
_ = require('lodash');
var Parser = {};
module.exports.parse = function(value) {
Parser = (function() {
Parser.__proto__.parse = function(value) {
// get keys of key(space):(space)"value" pattern.
var matches = String(value).match(/\S*(?=\s*:\s*\".*\")/gmi);
// get keys of key(space):(space)"value" pattern.
var matches = value.match(/\S*(?=\s*:\s*\".*\")/gmi);
// remove duplicates and null items
var unimatches = _.uniq(matches, false).filter(function(e){return e});
// remove duplicates and null items
var unimatches = _.uniq(matches, false).filter(function(e){return e});
// generate json
var json_out = {double_quotes:unimatches};
// generate json
var json_out = {double_quotes:unimatches};
return json_out;
};
return Parser;
})();
module.exports = Parser;
return json_out;
};
{
"name": "meta-yaml",
"version": "0.1.0",
"version": "0.1.1",
"description": "JSON Metafile generator for rsa-yaml",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc