# strify

> short cut for `fs.readFileSync(__dirname + '/path/file.txt', 'utf-8')`

Latest version **1.0.0** (published 2015-04-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install strify
pnpm add strify
yarn add strify
bun add strify
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-04-02 |
| First published | 2015-04-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andi Neck |
| Maintainers | andineck |
| Keywords | readfile, sync, with, relative, path |

## Links

- npm: https://www.npmjs.com/package/strify
- Repository: https://github.com/intesso/strify
- Issues: https://github.com/intesso/strify/issues
- npm.io page: https://npm.io/package/strify

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-04-02

## README

# strify
short cut for `fs.readFileSync(__dirname + '/path/file.txt', 'utf-8')`

## install

```bash
npm install --save strify
```


## use


it's just a tiny helper function:
```js
strify('/path/file.txt');
```

that is equal to:
```js
fs.readFileSync(__dirname + '/path/file.txt', 'utf-8')
```

### example

```js
var strify = require('strify');

var tmpl = strify('./views/login.ejs');
// tmpl holds the read file as a string.
 ```

## license
MIT

---
_Source: https://npm.io/package/strify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
