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

readwrite

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readwrite

A simple, non-verbose wrapper for reading and writing files

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-28.57%
Maintainers
1
Weekly downloads
 
Created
Source

readwrite, for all of your reading and writing

This simple, lightweight, elegant library allows you to read files simply and efficiently.

Installation

λ npm install readwrite

Simple!

Examples

rw.write("forty.two", "42 is a very special number.\nUse it wisely.");

rw.logln(rw.read("forty.two"));

rw.log("Hello! ");
rw.log("My name is...");

rw.logln("...!");
rw.logln("I have no idea... what my name is...");

rw.logfln("Oh wait, my name is %0, and I am a %1!", "Derpy", "programmer");
rw.log("Here are your lucky numbers! ");
rw.logfln("[%[ ]]", 3, 2, 9, 6, 3);
rw.logfln("You are running readwrite version %{version}, by the way.", rw);

Outputs:

42 is a very special number.
Use it wisely.
Hello! My name is......!
I have no idea... what my name is...
Oh wait, my name is Derpy, and I am a programmer!
Here are your lucky numbers! [3 2 9 6 3]
You are running readwrite version 1.0.2, by the way.

More documentation is to come, but hopefully the examples are sufficient for the moment.

Keywords

FAQs

Package last updated on 07 Feb 2018

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