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

@coffeekraken/s-data-file-js

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coffeekraken/s-data-file-js

Nice and easy to use class to load data from "JSON" or "JS" files

  • 2.0.0-alpha.19
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

{{#> layout-readme }}

SDataFileJs

This package expose a simple SDataFileJs class that allows you to load data from different file types like js and json.

Features

  • Supported file types:
    • .js: A js file that export a function or directly some data
    • .json: Simple json file
  • Nothing more, nothing less...

Usage

Here's a simple example how to use the SDataFileJs class:

import __SDataFileJs from '@coffeekraken/s-data-file-js';
const dataFromJson = await __SDataFileJs.load('/my/cool/file.json');

API

For more information about the API, please check out the API documentation

{{/ layout-readme }}

FAQs

Package last updated on 16 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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