Socket
Socket
Sign inDemoInstall

hyfileparser

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hyfileparser

Reads a file and returns it as an array of lines


Version published
Maintainers
1
Created

Readme

Source

Hei Yuki File Parser (hyfileparser)

This is a very small module that converts a file into an array of strings. Each element of the array is a line in the file.

Quick Start

npm install hyfileparser

You then easily require the module:

const hyparser = require('hyfileparser');

How to Use

const hyparser = require('./parser.js');


hyparser.fileToArray(PATH_TO_YOUR_FILE).then((arr) => {
    //arr is the array returned by the function
    console.log(arr);
    //Log or do whatever :3
}, (err) => {
    //err is an error message
    //Simply log it to know what's wrong
    console.log(err);
});

License

MIT heiyukidev

About the Author

I'm Khaled Romdhane and my handle is @heiyukidev

If you stumble across this handle @heiyuki that's me, but not so professional.

Keywords

FAQs

Last updated on 23 Feb 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc