Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

load-yml

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

load-yml - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

16

dist/index.d.ts
/// <reference types="node" />
import { DumpOptions } from 'js-yaml';
import { LoadOptions } from 'js-yaml';
declare const _default: {
parseYml: typeof parseYml;
stringifyYml: typeof stringifyYml;
loadYml: typeof loadYml;

@@ -40,6 +44,16 @@ loadYmlSync: typeof loadYmlSync;

* @param data - file path
* @param options - load options: LoadOptions
* @returns - result
*/
export declare function parseYml(data: string): unknown | null;
export declare function parseYml(data: string, options?: LoadOptions): unknown | null;
/**
* stringify yaml data
*
* @param data - file path
* @param options - dump options: DumpOptions
* @returns - result
*/
export declare function stringifyYml<T>(data: T, options?: DumpOptions): string | null;
export { }

5

package.json
{
"name": "load-yml",
"description": "Read and parse a .yaml or .yml file",
"version": "1.0.0",
"version": "1.1.0",
"packageManager": "pnpm@7.26.1",

@@ -46,3 +46,2 @@ "main": "./dist/index.cjs",

"dependencies": {
"@types/js-yaml": "^4.0.5",
"core-js": "^3.27.2",

@@ -64,4 +63,6 @@ "js-yaml": "^4.1.0",

"@types/jest": "^29.4.0",
"@types/js-yaml": "^4.0.5",
"@types/node": "^18.11.18",
"chalk": "^5.2.0",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",

@@ -68,0 +69,0 @@ "eslint": "^8.33.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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