New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

frominto

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frominto

Generate from/in/to/via conjugations of Finnish places

latest
npmnpm
Version
2.0.1
Version published
Weekly downloads
19
72.73%
Maintainers
1
Weekly downloads
 
Created
Source

frominto

npm

🇫🇮 Finnish language is hard. We come from "Mäntyharjulta" or "Hiekkaharjusta". We spend our time "Lahdessa" or "Kesälahdella". This library features more than 90 conjugation rules (elative, inessive, illative and genitive cases), 132 automated tests and pinch of awesomeness ✨

This project is based on the work of Antti Kosonen which haven't updated since 2016. Many new features have been added in this fork!

Usage

import { strictEqual } from 'assert/strict'
import { From, In, To, Via, frominto } from 'frominto'

// Method 1
strictEqual(From('Helsinki'), 'Helsingistä')
strictEqual(In('Helsinki'), 'Helsingissä')
strictEqual(To('Helsinki'), 'Helsinkiin')
strictEqual(Via('Helsinki'), 'Helsingin')

// Method 2
const cityConjugations = frominto('Helsinki')
strictEqual(cityConjugations.from, 'Helsingistä')
strictEqual(cityConjugations.in, 'Helsingissä')
strictEqual(cityConjugations.to, 'Helsinkiin')
strictEqual(cityConjugations.via, 'Helsingin')

Contributions

Contributions are welcome and greatly appreciated ☺️

  • Write a test case in test/index.ts
  • Write a rule in index.ts in the appropriate line
  • Make the pull request! 💪

Keywords

finnish

FAQs

Package last updated on 16 Mar 2024

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