![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@adv-ui/nc-strings
Advanced tools
Set of useful js utilities for NC components.
$ npm install @schibstedspain/nc-strings --save
A bunch of string utilities to format literals.
import { getMinPriceLiteral, getPriceRangeLiteral, getSizeRangeLiteral, getSurfaceRangeLiteral,
getTotalUnitsLiteral, getNumberOfRoomsRangeLiteral, getNumberOfRoomsLiteral, getAdvertiserPhone,
getProjectExtras, getDeliveryDateLiteral } from '@schibstedspain/nc-strings'
const { i18n } = this.context // Retrieve your i18n instance from component's context.
console.log(getMinPriceLiteral({ i18n, 5000 }))
// Desde 5.000 E
console.log(getSizeRangeLiteral({ i18n, minSize: 50, maxSize: 100 }))
// Desde 50 - 100 m2
console.log(getTotalUnitsLiteral({ i18n, totalUnits: 3 }))
// 3 habitaciones
console.log(getPriceRangeLiteral({ i18n, { minPrice: 100000, maxPrice: 360000 } }))
// 100.000 E a 360.000 E
console.log(getSurfaceRangeLiteral({ i18n, surfaceRange: { minSurface: 50, maxSurface: 100 } }))
// De 50 m2 a 100 m2
console.log(getNumberOfRoomsRangeLiteral({ i18n, numberOfRoomsRange: { minRooms: 1, maxRooms: 7 } }))
// De 1 - 7 habitaciones
console.log(getNumberOfRoomsLiteral({ i18n, bedrooms: 1 }))
// 1 habitacion
console.log(getAdvertiserPhone('999888777'))
// 999 888 777
console.log(getProjectExtras({ i18n, [{ id: 1}, { id: 3 }, { id: 26 }, { id: 84 }]}))
// [{ label: 'Aire acondicionado' }, { label: 'Calefaccion' }, { label: 'Parking comunitario' }, { label: 'Puerta blindada' }]
/* (assuming that now is "Jan 1st 2018") */
console.log(getDeliveryDateLiteral({ i18n, deliveryDate: '2018-09-01T00:00:00'}))
// Listo en 8 meses
FAQs
Set of New Construction JS string utilities (text formatters).
The npm package @adv-ui/nc-strings receives a total of 6 weekly downloads. As such, @adv-ui/nc-strings popularity was classified as not popular.
We found that @adv-ui/nc-strings demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.