@spare/fold

0.16.2 • Public • Published

@spare/fold

Split one line of words into lines

npm version npm quality npm download npm total-download size github commit activity npm license

Features

  • Split one line of words into lines

Install

$ npm install @spare/fold

Usage

import { fold } from '@spare/fold'

const quoteByModigliani= `What is the "cost of capital" to a, firm in a world in which funds are used to acquire assets whose yields are uncertain; and in which capital can be obtained by many different media, ranging from pure debt instruments, representing money-fixed claims, to pure equity issues, giving holders only the right to a pro-rata share in the uncertain venture? This question has vexed at least three classes of economists: (1) the corporation finance specialist concerned with the techniques of financing firms so as to ensure their survival and growth; (2) the managerial economist concerned with capital budgeting; and (3) the economic theorist concerned with explaining investment behavior at both the micro and macro levels.`
const folded=fold(quoteByModigliani)
console.log(folded)

Meta

LICENSE (MIT)

Copyright (c) 2019-present, Haoyang (Vincent) Wang

Readme

Keywords

Package Sidebar

Install

npm i @spare/fold

Weekly Downloads

48

Version

0.16.2

License

MIT

Unpacked Size

5.7 kB

Total Files

4

Last publish

Collaborators

  • hoyeung